| java.lang.Object com.sun.xml.stream.BufferManager
All known Subclasses: com.sun.xml.stream.FileBufferManager, com.sun.xml.stream.StreamBufferManager,
BufferManager | abstract public class BufferManager (Code) | | author: Neeraj Bajaj, Sun Microsystems |
Method Summary | |
abstract public boolean | arrangeCapacity(int length) | abstract public void | close() | public boolean | endOfStream() | public static BufferManager | getBufferManager(XMLInputSource inputSource) | abstract public CharBuffer | getCharBuffer() | protected 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.
Parameters: b4 - The first four bytes of the input. Parameters: count - The number of bytes actually read. | abstract public boolean | getMore() This function returns true if some character data was loaded. | public static void | main(String[] args) | abstract public void | setEncoding(String encoding) |
DEBUG | static boolean DEBUG(Code) | | |
endOfStream | protected boolean endOfStream(Code) | | |
arrangeCapacity | abstract public boolean arrangeCapacity(int length) throws java.io.IOException(Code) | | xxx: This should be an abstract method because in StreamBufferManager
CharBuffer capacity doesn't grow
|
endOfStream | public boolean endOfStream()(Code) | | This file signals the end of file
true/false signals the end of file. |
getCharBuffer | abstract public CharBuffer getCharBuffer()(Code) | | |
getEncodingName | protected Object[] getEncodingName(byte[] b4, int count)(Code) | | Returns the IANA encoding name that is auto-detected from
the bytes specified, with the endian-ness of that encoding where appropriate.
Parameters: b4 - The first four bytes of the input. Parameters: count - The number of bytes actually read. a 2-element array: the first element, an IANA-encoding string,the second element a Boolean which is true iff the document is big endian, falseif it's little-endian, and null if the distinction isn't relevant. |
getMore | abstract public boolean getMore() throws java.io.IOException(Code) | | This function returns true if some character data was loaded. Data is available via getCharBuffer().
If before calling this function CharBuffer had some data (i.e. remaining() > 0) then this function
first calls CharBuffer.compact() and then it is filled with more data. After calling this function
CharBuffer.position() is always 'zero'.
See Also: CharBuffer.compact() true if some character data was loaded. False value can be assume to be end of current entity. |
|
|