com.waveset.adapter.ScriptedConnection
Class NVTOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended bycom.waveset.adapter.ScriptedConnection.NVTOutputStream

public class NVTOutputStream
extends java.io.FilterOutputStream

Counterpart output stream for NVTInputStream. Handles the output side of a Telnet Network Virtual Terminal by simply escaping out any Interpret As Command codes that happen to occur naturally in the output.


Field Summary
protected static Trace _trace
           
static java.lang.String code_id
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
NVTOutputStream(java.io.OutputStream out)
          Constructor.
 
Method Summary
 void write(byte[] b)
          Write an array of bytes to the output.
 void write(byte[] b, int off, int len)
          Write a segment of bytes from an array to the output.
 void write(byte[] b, int off, int len, boolean isEncrypted)
          Write a segment of bytes from an array to the output.
 void write(int b)
          Write a single byte to the output.
 
Methods inherited from class java.io.FilterOutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

_trace

protected static Trace _trace
Constructor Detail

NVTOutputStream

public NVTOutputStream(java.io.OutputStream out)
Constructor.

Method Detail

write

public void write(byte[] b)
           throws java.io.IOException
Write an array of bytes to the output.

Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Write a single byte to the output.

Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Write a segment of bytes from an array to the output.

Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len,
                  boolean isEncrypted)
           throws java.io.IOException
Write a segment of bytes from an array to the output.

Throws:
java.io.IOException