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.IOException
public abstract boolean getMore() throws java.io.IOException
java.io.IOException
CharBuffer.compact()
public abstract java.nio.CharBuffer getCharBuffer()
public abstract boolean arrangeCapacity(int length) throws java.io.IOException
java.io.IOException
public boolean endOfStream()
public abstract void close() throws java.io.IOException
java.io.IOException
public abstract void setEncoding(java.lang.String encoding) throws java.io.IOException
java.io.IOException
protected 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.