org.mbari.siam.core.nvt
Class NVTOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.mbari.siam.core.nvt.NVTOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class NVTOutputStream
extends java.io.OutputStream


Field Summary
protected  NVTSerialPort _nvtPort
           
 
Constructor Summary
NVTOutputStream(NVTSerialPort port)
          Create a new NVTOutputStream
 
Method Summary
 void close()
          close the OutputStream
 void flush()
          Flush the underlying OutputStream
 void write(byte[] b)
          Write b.len bytes of data
 void write(byte[] b, int off, int len)
          Write len bytes of data starting at offset off
 void write(int b)
          Write a byte of data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_nvtPort

protected NVTSerialPort _nvtPort
Constructor Detail

NVTOutputStream

public NVTOutputStream(NVTSerialPort port)
Create a new NVTOutputStream

Method Detail

close

public void close()
close the OutputStream

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream

write

public void write(int b)
           throws java.io.IOException
Write a byte of data

Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Write b.len bytes of data

Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Write len bytes of data starting at offset off

Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Flush the underlying OutputStream

Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.