org.apache.tomcat.util.buf
Class B2CConverter
java.lang.Object
org.apache.tomcat.util.buf.B2CConverter
public class B2CConverter
- extends Object
NIO based character decoder.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ISO_8859_1
public static final Charset ISO_8859_1
UTF_8
public static final Charset UTF_8
LEFTOVER_SIZE
protected static final int LEFTOVER_SIZE
- See Also:
- Constant Field Values
B2CConverter
public B2CConverter(String encoding)
throws IOException
- Throws:
IOException
B2CConverter
public B2CConverter(String encoding,
boolean replaceOnError)
throws IOException
- Throws:
IOException
getCharset
public static Charset getCharset(String enc)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
getCharsetLower
public static Charset getCharsetLower(String lowerCaseEnc)
throws UnsupportedEncodingException
- Only to be used when it is known that the encoding name is in lower case.
- Throws:
UnsupportedEncodingException
recycle
public void recycle()
- Reset the decoder state.
convert
public void convert(ByteChunk bc,
CharChunk cc,
boolean endOfInput)
throws IOException
- Convert the given bytes to characters.
- Parameters:
bc
- byte inputcc
- char outputendOfInput
- Is this all of the available data
- Throws:
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.