public abstract class BufferManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
endOfStream |
| Constructor and Description |
|---|
BufferManager() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
arrangeCapacity(int length)
xxx: This should be an abstract method because in StreamBufferManager
CharBuffer capacity doesn't grow
|
abstract void |
close() |
boolean |
endOfStream()
This file signals the end of file
|
static BufferManager |
getBufferManager(org.apache.xerces.xni.parser.XMLInputSource inputSource) |
abstract java.nio.CharBuffer |
getCharBuffer() |
protected java.lang.Object[] |
getEncodingName(byte[] b4,
int count)
Returns the IANA encoding name that is auto-detected from
the bytes specified, with the endian-ness of that encoding where appropriate.
|
abstract boolean |
getMore()
This function returns true if some character data was loaded.
|
static void |
main(java.lang.String[] args) |
abstract void |
setEncoding(java.lang.String encoding) |
public static BufferManager getBufferManager(org.apache.xerces.xni.parser.XMLInputSource inputSource) throws java.io.IOException
java.io.IOExceptionpublic abstract boolean getMore()
throws java.io.IOException
java.io.IOExceptionCharBuffer.compact()public abstract java.nio.CharBuffer getCharBuffer()
public abstract boolean arrangeCapacity(int length)
throws java.io.IOException
java.io.IOExceptionpublic boolean endOfStream()
public abstract void close()
throws java.io.IOException
java.io.IOExceptionpublic abstract void setEncoding(java.lang.String encoding)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.Object[] getEncodingName(byte[] b4,
int count)
b4 - The first four bytes of the input.count - The number of bytes actually read.public static void main(java.lang.String[] args)
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.