| java.lang.Object com.sun.xml.stream.BufferManager com.sun.xml.stream.StreamBufferManager
StreamBufferManager | public class StreamBufferManager extends BufferManager (Code) | | author: Neeraj Bajaj, Sun Microsystems |
Inner Class :final protected class RewindableInputStream extends InputStream | |
DEBUG | final static boolean DEBUG(Code) | | |
DEFAULT_LENGTH | final static int DEFAULT_LENGTH(Code) | | |
charBuffer | CharBuffer charBuffer(Code) | | |
fAllowJavaEncodings | boolean fAllowJavaEncodings(Code) | | |
createReader | protected Reader createReader(InputStream inputStream, String encoding, Boolean isBigEndian) throws IOException(Code) | | Creates a reader capable of reading the given input stream in
the specified encoding.
Parameters: inputStream - The input stream. Parameters: encoding - The encoding name that the input stream isencoded using. If the user has specified thatJava encoding names are allowed, then theencoding name may be a Java encoding name;otherwise, it is an ianaEncoding name. Parameters: isBigEndian - For encodings (like uCS-4), whose names cannotspecify a byte order, this tells whether the order is bigEndian. null menasunknown or not relevant. Returns a reader. |
getCharBuffer | public CharBuffer getCharBuffer()(Code) | | |
getLength | int getLength()(Code) | | |
getMore | 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 currententity. |
|
|