Save This Page
Home » openjdk-7 » java » nio » charset » [javadoc | source]
java.nio.charset
abstract public class: CharsetEncoder [javadoc | source]
java.lang.Object
   java.nio.charset.CharsetEncoder
Constructor:
 protected CharsetEncoder(Charset cs,
    float averageBytesPerChar,
    float maxBytesPerChar) 
 protected CharsetEncoder(Charset cs,
    float averageBytesPerChar,
    float maxBytesPerChar,
    byte[] replacement) 
Method from java.nio.charset.CharsetEncoder Summary:
averageBytesPerChar,   canEncode,   canEncode,   charset,   encode,   encode,   encodeLoop,   flush,   implFlush,   implOnMalformedInput,   implOnUnmappableCharacter,   implReplaceWith,   implReset,   isLegalReplacement,   malformedInputAction,   maxBytesPerChar,   onMalformedInput,   onUnmappableCharacter,   replaceWith,   replacement,   reset,   unmappableCharacterAction
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.nio.charset.CharsetEncoder Detail:
 public final float averageBytesPerChar() 
 public boolean canEncode(char c) 
 public boolean canEncode(CharSequence cs) 
 public final Charset charset() 
 public final ByteBuffer encode(CharBuffer in) throws CharacterCodingException 
 public final CoderResult encode(CharBuffer in,
    ByteBuffer out,
    boolean endOfInput) 
 abstract protected CoderResult encodeLoop(CharBuffer in,
    ByteBuffer out)
 public final CoderResult flush(ByteBuffer out) 
 protected CoderResult implFlush(ByteBuffer out) 
 protected  void implOnMalformedInput(CodingErrorAction newAction) 
 protected  void implOnUnmappableCharacter(CodingErrorAction newAction) 
 protected  void implReplaceWith(byte[] newReplacement) 
 protected  void implReset() 
 public boolean isLegalReplacement(byte[] replacement) 
 public CodingErrorAction malformedInputAction() 
 public final float maxBytesPerChar() 
 public final CharsetEncoder onMalformedInput(CodingErrorAction newAction) 
 public final CharsetEncoder onUnmappableCharacter(CodingErrorAction newAction) 
 public final CharsetEncoder replaceWith(byte[] newReplacement) 
 public final byte[] replacement() 
 public final CharsetEncoder reset() 
 public CodingErrorAction unmappableCharacterAction()