sam.io
Class DoubleByte

java.lang.Object
  |
  +--sam.io.DoubleByte

public class DoubleByte
extends java.lang.Object

Classes for input/output on streams two bytes at a time


Nested Class Summary
static class DoubleByte.Exception
          Exception thrown from DoubleByte classes
static class DoubleByte.InputStreamReader
          Reads double-bytes from standard single-byte InputStream
static class DoubleByte.OutputStreamWriter
          Writes double-bytes into standard single-byte OutputStream
static interface DoubleByte.Reader
          Simple double-byte reader abstraction
static class DoubleByte.ReaderInputStream
          Reads single bytes from a double-bytes Reader
static interface DoubleByte.Writer
          Simple double-byte writer abstraction
static class DoubleByte.WriterOutputStream
          Writes single bytes into a double-bytes Writer
 
Constructor Summary
DoubleByte()
           
 
Method Summary
static int firstByte(int doubleByte)
           
static int mergeBytes(int a, int b)
           
static int secondByte(int doubleByte)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleByte

public DoubleByte()
Method Detail

firstByte

public static int firstByte(int doubleByte)

secondByte

public static int secondByte(int doubleByte)

mergeBytes

public static int mergeBytes(int a,
                             int b)