org.mbari.siam.core.nvt
Class NVTInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.mbari.siam.core.nvt.NVTInputStream
All Implemented Interfaces:
java.io.Closeable

public class NVTInputStream
extends java.io.InputStream


Field Summary
protected  NVTSerialPort _nvtPort
           
 
Constructor Summary
NVTInputStream(NVTSerialPort port)
          Create a new NVTInputStream
 
Method Summary
 int available()
          returns the number of bytes that can be read from this inputstream without blocking
 void close()
          close the InputStream
 void mark(int readlimit)
          Does nothing
 boolean markSupported()
          markSupported() returns false
 int read()
          Read next byte of data
 int read(byte[] b)
          Read array of bytes
 int read(byte[] b, int off, int len)
          Read array of bytes with offset
 
Methods inherited from class java.io.InputStream
reset, skip
 
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

NVTInputStream

public NVTInputStream(NVTSerialPort port)
Create a new NVTInputStream

Method Detail

available

public int available()
              throws java.io.IOException
returns the number of bytes that can be read from this inputstream without blocking

Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

close

public void close()
close the InputStream

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

read

public int read()
         throws java.io.IOException
Read next byte of data

Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Read array of bytes

Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Read array of bytes with offset

Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

markSupported

public boolean markSupported()
markSupported() returns false

Overrides:
markSupported in class java.io.InputStream

mark

public void mark(int readlimit)
Does nothing

Overrides:
mark in class java.io.InputStream


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.