org.mbari.siam.core
Class InstrumentConsole

java.lang.Object
  extended by org.mbari.siam.core.InstrumentConsole

public class InstrumentConsole
extends java.lang.Object


Constructor Summary
InstrumentConsole(InstrumentPort instPort, java.io.InputStream is, java.io.OutputStream os)
          create a new InstrumentConsole
 
Method Summary
 int available()
          see if any bytes are available
 int read()
          read a byte from the instrument
 void write(int b)
          write a byte to the instrument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentConsole

public InstrumentConsole(InstrumentPort instPort,
                         java.io.InputStream is,
                         java.io.OutputStream os)
                  throws java.io.IOException
create a new InstrumentConsole

Throws:
java.io.IOException
Method Detail

write

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

Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
read a byte from the instrument

Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
see if any bytes are available

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.