|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.timeindexing.plugin.DefaultOutputPlugin
public class 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 and a WriterPlugin. |
|
DefaultOutputPlugin(WriterPlugin aPlugin)
Construct an DefaultOutputPlugin object given just a WriterPlugin. |
|
| Method Summary | |
|---|---|
java.lang.Object |
begin()
Does nothing. |
java.lang.Object |
end()
Close the OutputStream by default. |
long |
flush()
Flush out any remainig data. |
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 |
setContext(Index anIndex,
java.io.OutputStream outStream)
Set the context for the OutputPlugin, which is the Index we are going output for, and the OutputStream that is being written to. |
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(WriterPlugin aPlugin)
public DefaultOutputPlugin(Index anIndex,
java.io.OutputStream output)
public DefaultOutputPlugin(Index anIndex,
java.io.OutputStream output,
WriterPlugin aPlugin)
| Method Detail |
|---|
public OutputPlugin setContext(Index anIndex,
java.io.OutputStream outStream)
setContext in interface OutputPluginpublic Index getIndex()
getIndex in interface OutputPluginpublic java.io.OutputStream getOutputStream()
getOutputStream in interface OutputPluginpublic OutputPlugin setWriterPlugin(WriterPlugin writer)
setWriterPlugin in interface OutputPluginpublic WriterPlugin getWriterPlugin()
getWriterPlugin in interface OutputPlugin
public long write(IndexItem item,
IndexProperties properties)
throws java.io.IOException
write in interface OutputPluginitem - The IndexItem to putputproperties - Some IndexProperties
java.io.IOException
public long flush()
throws java.io.IOException
flush in interface OutputPluginjava.io.IOException
public java.lang.Object begin()
throws java.io.IOException
begin in interface OutputPluginjava.io.IOException
public java.lang.Object end()
throws java.io.IOException
end in interface OutputPluginjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||