KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > nio > charset > CharsetEncoder

java.nio.charset
Class CharsetEncoder

java.lang.Object
  extended by java.nio.charset.CharsetEncoder
See Also:
Top Examples, Source Code, encodeLoop, onUnmappableCharacter, onMalformedInput, replaceWith, replace, report, ignore, CoderResult, flush, encode, reset, ByteBuffer, CharBuffer, Charset, CharsetDecoder

public final float averageBytesPerChar()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean canEncode(char c)
See Also:
IllegalStateException, canEncode(CharSequence)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean canEncode(CharSequence cs)
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final Charset charset()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected CharsetEncoder(Charset cs,
                         float averageBytesPerChar,
                         float maxBytesPerChar)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected CharsetEncoder(Charset cs,
                         float averageBytesPerChar,
                         float maxBytesPerChar,
                         byte[] replacement)
See Also:
IllegalArgumentException, legal
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final ByteBuffer encode(CharBuffer in)
                        throws CharacterCodingException
See Also:
CodingErrorAction.REPORT, UnmappableCharacterException, MalformedInputException, IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final CoderResult encode(CharBuffer in,
                                ByteBuffer out,
                                boolean endOfInput)
See Also:
CoderMalfunctionError, reset, IllegalStateException, encodeLoop, CodingErrorAction.REPORT, unmappable action, unmappable-character, malformed action, malformed-input, CoderResult.OVERFLOW, CoderResult.UNDERFLOW, out.remaining()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected abstract CoderResult encodeLoop(CharBuffer in,
                                          ByteBuffer out)
See Also:
CoderResult.UNDERFLOW, encode, out.remaining()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final CoderResult flush(ByteBuffer out)
See Also:
encode, reset, IllegalStateException, CoderResult.OVERFLOW, CoderResult.UNDERFLOW, implFlush, out.remaining()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected CoderResult implFlush(ByteBuffer out)
See Also:
CoderResult.OVERFLOW, CoderResult.UNDERFLOW
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void implOnMalformedInput(CodingErrorAction newAction)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void implOnUnmappableCharacter(CodingErrorAction newAction)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void implReplaceWith(byte[] newReplacement)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void implReset()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isLegalReplacement(byte[] repl)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public CodingErrorAction malformedInputAction()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final float maxBytesPerChar()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final CharsetEncoder onMalformedInput(CodingErrorAction newAction)
See Also:
IllegalArgumentException, implOnMalformedInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final CharsetEncoder onUnmappableCharacter(CodingErrorAction newAction)
See Also:
IllegalArgumentException, implOnUnmappableCharacter
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final byte[] replacement()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final CharsetEncoder replaceWith(byte[] newReplacement)
See Also:
IllegalArgumentException, legal, implReplaceWith
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final CharsetEncoder reset()
See Also:
implReset
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public CodingErrorAction unmappableCharacterAction()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags