|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.timeindexing.plugin.DefaultOutputPlugin
A class to output any data
Constructor Summary | |
DefaultOutputPlugin(Index anIndex,
java.io.OutputStream output)
Construct an DefaultOutputPlugin object given an index and an output stream. |
|
DefaultOutputPlugin(Index anIndex,
java.io.OutputStream output,
WriterPlugin aPlugin)
Construct an DefaultOutputPlugin object given an index and an output stream. |
Method Summary | |
java.lang.Object |
begin()
Does nothing. |
java.lang.Object |
end()
Close the OutputStream by default. |
Index |
getIndex()
Get the index we are doing output for. |
java.io.OutputStream |
getOutputStream()
Get the OutputStream for the OutputPlugin. |
WriterPlugin |
getWriterPlugin()
Get the writer plugin. |
OutputPlugin |
setWriterPlugin(WriterPlugin writer)
Set a writer plugin, to read input from the InputStream. |
long |
write(IndexItem item,
IndexProperties properties)
Do some output. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultOutputPlugin(Index anIndex, java.io.OutputStream output)
public DefaultOutputPlugin(Index anIndex, java.io.OutputStream output, WriterPlugin aPlugin)
Method Detail |
public Index getIndex()
getIndex
in interface OutputPlugin
public java.io.OutputStream getOutputStream()
getOutputStream
in interface OutputPlugin
public long write(IndexItem item, IndexProperties properties) throws java.io.IOException
write
in interface OutputPlugin
item
- The IndexItem to putputproperties
- Some IndexProperties
java.io.IOException
public java.lang.Object begin() throws java.io.IOException
begin
in interface OutputPlugin
java.io.IOException
public java.lang.Object end() throws java.io.IOException
end
in interface OutputPlugin
java.io.IOException
public OutputPlugin setWriterPlugin(WriterPlugin writer)
setWriterPlugin
in interface OutputPlugin
public WriterPlugin getWriterPlugin()
getWriterPlugin
in interface OutputPlugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |