org.glassfish.grizzly.websockets
Class StrictUtf8.Encoder

java.lang.Object
  extended by java.nio.charset.CharsetEncoder
      extended by org.glassfish.grizzly.websockets.StrictUtf8.Encoder
Enclosing class:
StrictUtf8

protected static final class StrictUtf8.Encoder
extends CharsetEncoder


Method Summary
 boolean canEncode(char c)
           
 int encode(char[] sa, int sp, int len, byte[] da)
           
protected  CoderResult encodeLoop(CharBuffer src, ByteBuffer dst)
           
 boolean isLegalReplacement(byte[] repl)
           
 
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
 

Method Detail

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 © 2013 Oracle Corporation. All Rights Reserved.