|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OutputPlugin
An interface for output plugins.
| Method Summary | |
|---|---|
java.lang.Object |
begin()
Called as the first thing of doOutput(). |
java.lang.Object |
end()
Called as the last thing of doOutput(), just before it returns. |
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 index,
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. |
| Method Detail |
|---|
Index getIndex()
java.io.OutputStream getOutputStream()
OutputPlugin setContext(Index index,
java.io.OutputStream outStream)
OutputPlugin setWriterPlugin(WriterPlugin writer)
WriterPlugin getWriterPlugin()
long write(IndexItem item,
IndexProperties properties)
throws java.io.IOException
item - The IndexItem to putputproperties - Some IndexProperties
java.io.IOException
long flush()
throws java.io.IOException
java.io.IOException
java.lang.Object begin()
throws java.io.IOException
java.io.IOException
java.lang.Object end()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||