org.mbari.io
Class AsciiHexInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.mbari.io.AsciiHexInputStream

public class AsciiHexInputStream
extends java.io.FilterInputStream

Used for reading ASCII hexadecimal values from a stream. Useful for binary data streams that OASIS controllers convert to Hexadecimal for transmission.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
AsciiHexInputStream(java.io.InputStream in)
           
 
Method Summary
 int read()
          Read a single byte (2 ASCII characters).
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsciiHexInputStream

public AsciiHexInputStream(java.io.InputStream in)
Method Detail

read

public int read()
         throws java.io.IOException
Read a single byte (2 ASCII characters).

Throws:
java.io.IOException - If an I/O error occurs