public class FileBufferManager extends BufferManager
endOfStream| Constructor and Description |
|---|
FileBufferManager(java.io.FileInputStream stream,
java.lang.String encodingName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
arrangeCapacity(int length)
xxx: This should be an abstract method because in StreamBufferManager
CharBuffer capacity doesn't grow
|
void |
close() |
java.nio.CharBuffer |
getCharBuffer() |
boolean |
getMore()
This function returns true if some character data was loaded.
|
java.nio.ByteBuffer |
getMoreBytes()
This function gets more data from the file.
|
static void |
main(java.lang.String[] args) |
void |
setEncoding(java.lang.String encoding) |
endOfStream, getBufferManager, getEncodingNamepublic FileBufferManager(java.io.FileInputStream stream,
java.lang.String encodingName)
throws java.io.IOException
java.io.IOExceptionpublic boolean arrangeCapacity(int length)
throws java.io.IOException
BufferManagerarrangeCapacity in class BufferManagerjava.io.IOExceptionpublic java.nio.ByteBuffer getMoreBytes()
throws java.io.IOException
java.io.IOExceptionpublic boolean getMore()
throws java.io.IOException
getMore in class BufferManagerjava.io.IOExceptionCharBuffer.compact()public java.nio.CharBuffer getCharBuffer()
getCharBuffer in class BufferManagerpublic static void main(java.lang.String[] args)
public void close()
throws java.io.IOException
close in class BufferManagerjava.io.IOExceptionpublic void setEncoding(java.lang.String encoding)
throws java.io.IOException
setEncoding in class BufferManagerjava.io.IOExceptionCopyright ? 2002-2003 Apache XML Project. All Rights Reserved.