Code example for Charset

Methods: newDecoder, newEncoder

0
	private static final int PERSISTABLE_TYPE_BUNDLE = Byte.MAX_VALUE-5;
	private static final int ARRAY_TYPE_OBJECT = Byte.MAX_VALUE-6;
	private static final CharSequence BEGIN_CDATA = "<![CDATA[";
	private static final CharSequence END_CDATA = "]]>";
	private static final Charset CHARSET = Charset.forName("ISO-8859-1");
	private static final CharsetEncoder ENCODER = CHARSET.newEncoder();
	private static final CharsetDecoder DECODER = CHARSET.newDecoder();
	private final HashMap<String, String> ALIAS_MAP = new HashMap<String, String>();
	private static final char ESCAPE_CHAR = '\\';
	private static final char TERM_CHAR = ':';
 
 
 
	private final CharBuffer _charBuffer;
	private final ByteBuffer _byteBuffer;
	private final ClassLoader _loader;
	private final FileChannel _channel;
	private final ReadableByteChannel _readChannel;
 
	public PersistentParcel(ClassLoader loader, InputStream in)
	{