java > java.nio > java.nio.charset > java.nio.charset.charsetencoder >

Class: java.nio.charset.CharsetEncoder
    java.lang.Object
       java.nio.charset.CharsetEncoder


public abstract class CharsetEncoder extends Object


FIELDS:

CONSTRUCTORS:
protected CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement)

protected CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar)


METHODS:
public final float averageBytesPerChar()

public boolean canEncode(char c)
Throws: IllegalStateException

public boolean canEncode(CharSequence cs)
Throws: IllegalStateException

public final Charset charset()

public final ByteBuffer encode(CharBuffer in)
Throws: IllegalStateException
Throws: MalformedInputException
Throws: UnmappableCharacterException
Throws: CharacterCodingException

public final CoderResult encode(CharBuffer in, ByteBuffer out, boolean endOfInput)
Throws: IllegalStateException
Throws: CoderMalfunctionError

protected abstract CoderResult encodeLoop(CharBuffer in, ByteBuffer out)

public final CoderResult flush(ByteBuffer out)
Throws: IllegalStateException

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[] repl)

public CodingErrorAction malformedInputAction()

public final float maxBytesPerChar()

public final CharsetEncoder onMalformedInput(CodingErrorAction newAction)
Throws: IllegalArgumentException

public final CharsetEncoder onUnmappableCharacter(CodingErrorAction newAction)
Throws: IllegalArgumentException

public final CharsetEncoder replaceWith(byte[] newReplacement)
Throws: IllegalArgumentException

public final byte[] replacement()

public final CharsetEncoder reset()

public CodingErrorAction unmappableCharacterAction()


INHERITED METHODS:
getClass(), hashCode(), equals(java.lang.Object), clone(), toString(), notify(), notifyAll(), wait(long), wait(long, int), wait(), finalize(),

SUBCLASSES:





Yazilar kaynak gosterilmeden kopyalanamaz © www.kodcu.net