org.mbari.siam.core
Class InstrumentPortInputStream

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

public class InstrumentPortInputStream
extends java.io.InputStream


Constructor Summary
InstrumentPortInputStream(InstrumentPort port, java.io.InputStream is)
          Create a new InstrumentPortInputStream
 
Method Summary
 int available()
          returns the number of bytes that can be read from this inputstream without blocking
 void close()
          close the inputstream
 int read()
          read a character from the inputstream
 long skip(long n)
          skip n bytes of data from the inputstream
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentPortInputStream

public InstrumentPortInputStream(InstrumentPort port,
                                 java.io.InputStream is)
Create a new InstrumentPortInputStream

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()
           throws java.io.IOException
close the inputstream

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

read

public int read()
         throws java.io.IOException
read a character from the inputstream

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

skip

public long skip(long n)
          throws java.io.IOException
skip n bytes of data from the inputstream

Overrides:
skip in class java.io.InputStream
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.