|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.timeindexing.plugin.DefaultReader
com.timeindexing.plugin.Block
A plugin that takes an input stream and returns a block at a time.
Constructor Summary | |
Block(java.io.BufferedReader inReader)
Construct a Block plugin from a BufferedReader. |
|
Block(java.io.InputStream inStream)
Construct a Block plugin from an InputStream. |
|
Block(java.io.Reader inReader)
Construct a Block plugin from a Reader. |
Method Summary | |
int |
getBlockSize()
Get the block size. |
protected ReaderResult |
process(java.nio.ByteBuffer block)
Process the block |
ReaderResult |
read()
Get next input buffer. |
int |
setBlockSize(int noOfK)
Set the block size, in incrments of 1K. |
Methods inherited from class com.timeindexing.plugin.DefaultReader |
getInputStream, isEOF, setEOF, setInputStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.timeindexing.plugin.ReaderPlugin |
getInputStream, isEOF, setEOF, setInputStream |
Constructor Detail |
public Block(java.io.InputStream inStream)
public Block(java.io.Reader inReader)
public Block(java.io.BufferedReader inReader)
Method Detail |
public ReaderResult read() throws java.io.IOException
read
in interface ReaderPlugin
java.io.IOException
protected ReaderResult process(java.nio.ByteBuffer block)
public int getBlockSize()
public int setBlockSize(int noOfK)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |