com.timeindexing.plugin
Class DefaultWriter

java.lang.Object
  extended bycom.timeindexing.plugin.DefaultWriter
All Implemented Interfaces:
WriterPlugin

public class DefaultWriter
extends java.lang.Object
implements WriterPlugin

An default writer plugin. Takes an IndexItem and writes the bytes to the output stream.


Constructor Summary
DefaultWriter()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWriter

public DefaultWriter()
Method Detail

write

public long write(IndexItem item,
                  IndexProperties outputProperties)
           throws java.io.IOException
Specified by:
write in interface WriterPlugin
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
Get the OutputStream for the OutputPlugin.

Specified by:
getOutputStream in interface WriterPlugin

setOutputStream

public WriterPlugin setOutputStream(java.io.OutputStream outStream)
Set the OutputStream for the OutputPlugin.

Specified by:
setOutputStream in interface WriterPlugin