|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.timeindexing.plugin.DefaultWriter
public class DefaultWriter
An default writer plugin. Takes an IndexItem and writes the bytes to the output stream.
| Constructor Summary | |
|---|---|
DefaultWriter()
Construct a DefaultWriter. |
|
DefaultWriter(java.io.OutputStream out)
Construct a DefaultWriter given an OutputStream. |
|
| 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 DefaultWriter()
public DefaultWriter(java.io.OutputStream out)
| 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 | ||||||||