com.raelity.jvi
Class OutputStreamAdaptor

java.lang.Object
  extended by com.raelity.jvi.OutputStreamAdaptor
All Implemented Interfaces:
ViOutputStream
Direct Known Subclasses:
DefaultOutputStream

public class OutputStreamAdaptor
extends Object
implements ViOutputStream

Use this class instead of the interface, to make it easier to augment the interface in a compatible way.


Field Summary
 
Fields inherited from interface com.raelity.jvi.ViOutputStream
LINES, OUTPUT, PRI_HIGH, PRI_LOW, PRI_NORMAL, SEARCH
 
Constructor Summary
OutputStreamAdaptor()
           
 
Method Summary
 void close()
          Done with the stream.
 void println(int line, int offset, int length)
          Add a message to this output stream.
 void println(String s)
          Add a text line to the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamAdaptor

public OutputStreamAdaptor()
Method Detail

println

public void println(int line,
                    int offset,
                    int length)
Description copied from interface: ViOutputStream
Add a message to this output stream. This argument information could be used to identify a match within a line.

Specified by:
println in interface ViOutputStream
Parameters:
line - line number corresponding to this message
offset - offset within line
length - length, from offset, in the line

println

public void println(String s)
Description copied from interface: ViOutputStream
Add a text line to the output stream.

Specified by:
println in interface ViOutputStream

close

public void close()
Description copied from interface: ViOutputStream
Done with the stream.

Specified by:
close in interface ViOutputStream