com.raelity.jvi
Interface ViOutputStream

All Known Implementing Classes:
DefaultOutputStream, OutputStreamAdaptor

public interface ViOutputStream

When jVi wants to output multi-line information, for example lines matching a search or result of some command execution, the output is sent to a ViOutputStream.


Field Summary
static String LINES
          Indicates that the output stream is random lines from a file
static String OUTPUT
          Indicates that the output stream is command state information, reuse
static int PRI_HIGH
           
static int PRI_LOW
           
static int PRI_NORMAL
           
static String SEARCH
          Indicates that the output stream is for search results
 
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.
 

Field Detail

SEARCH

static final String SEARCH
Indicates that the output stream is for search results

See Also:
Constant Field Values

LINES

static final String LINES
Indicates that the output stream is random lines from a file

See Also:
Constant Field Values

OUTPUT

static final String OUTPUT
Indicates that the output stream is command state information, reuse

See Also:
Constant Field Values

PRI_LOW

static final int PRI_LOW
See Also:
Constant Field Values

PRI_NORMAL

static final int PRI_NORMAL
See Also:
Constant Field Values

PRI_HIGH

static final int PRI_HIGH
See Also:
Constant Field Values
Method Detail

println

void println(int line,
             int offset,
             int length)
Add a message to this output stream. This argument information could be used to identify a match within a line.

Parameters:
line - line number corresponding to this message
offset - offset within line
length - length, from offset, in the line

println

void println(String s)
Add a text line to the output stream.


close

void close()
Done with the stream.