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, getEncodingName
public FileBufferManager(java.io.FileInputStream stream, java.lang.String encodingName) throws java.io.IOException
java.io.IOException
public boolean arrangeCapacity(int length) throws java.io.IOException
BufferManager
arrangeCapacity
in class BufferManager
java.io.IOException
public java.nio.ByteBuffer getMoreBytes() throws java.io.IOException
java.io.IOException
public boolean getMore() throws java.io.IOException
getMore
in class BufferManager
java.io.IOException
CharBuffer.compact()
public java.nio.CharBuffer getCharBuffer()
getCharBuffer
in class BufferManager
public static void main(java.lang.String[] args)
public void close() throws java.io.IOException
close
in class BufferManager
java.io.IOException
public void setEncoding(java.lang.String encoding) throws java.io.IOException
setEncoding
in class BufferManager
java.io.IOException
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.