|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.timeindexing.plugin.BufferedWriter
public class BufferedWriter
A buffered writer plugin. Takes an IndexItem and writes the bytes to the output stream only when the buffer is full.
| Constructor Summary | |
|---|---|
BufferedWriter()
Construct a BufferedWriter. |
|
BufferedWriter(int bufSize)
Construct a BufferedWriter given a buffer size. |
|
BufferedWriter(java.io.OutputStream out,
int bufSize)
Construct a BufferedWriter given an OutputStream and a buffer size. |
|
| Method Summary | |
|---|---|
java.lang.Object |
begin()
Called as the first thing. |
java.lang.Object |
end()
Called as the last thing. |
long |
flush()
Flush out any remainig data. |
java.io.OutputStream |
getOutputStream()
Get the OutputStream for the OutputPlugin. |
WriterPlugin |
setOutputStream(java.io.OutputStream outStream)
Set the OutputStream for the OutputPlugin. |
long |
write(IndexItem item,
IndexProperties outputProperties)
Output properties include: "eolmark" -> "newline" -> |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferedWriter()
public BufferedWriter(int bufSize)
public BufferedWriter(java.io.OutputStream out,
int bufSize)
| Method Detail |
|---|
public long write(IndexItem item,
IndexProperties outputProperties)
throws java.io.IOException
write in interface WriterPluginjava.io.IOException
public long flush()
throws java.io.IOException
flush in interface WriterPluginjava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
getOutputStream in interface WriterPluginpublic WriterPlugin setOutputStream(java.io.OutputStream outStream)
setOutputStream in interface WriterPlugin
public java.lang.Object begin()
throws java.io.IOException
begin in interface WriterPluginjava.io.IOException
public java.lang.Object end()
throws java.io.IOException
end in interface WriterPluginjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||