org.glassfish.grizzly.websockets
Class StrictUtf8.Encoder
java.lang.Object
java.nio.charset.CharsetEncoder
org.glassfish.grizzly.websockets.StrictUtf8.Encoder
- Enclosing class:
- StrictUtf8
protected static final class StrictUtf8.Encoder
- extends CharsetEncoder
| Methods inherited from class java.nio.charset.CharsetEncoder |
averageBytesPerChar, canEncode, charset, encode, encode, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, implReset, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
canEncode
public boolean canEncode(char c)
- Overrides:
canEncode in class CharsetEncoder
isLegalReplacement
public boolean isLegalReplacement(byte[] repl)
- Overrides:
isLegalReplacement in class CharsetEncoder
encodeLoop
protected final CoderResult encodeLoop(CharBuffer src,
ByteBuffer dst)
- Specified by:
encodeLoop in class CharsetEncoder
encode
public int encode(char[] sa,
int sp,
int len,
byte[] da)
Copyright © 2012 Oracle Corporation. All Rights Reserved.