jasm.io
Class BinaryInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by jasm.io.BinaryInputStream
All Implemented Interfaces:
java.io.Closeable

public class BinaryInputStream
extends java.io.InputStream


Field Summary
protected  int count
           
protected  java.io.InputStream input
           
protected  int value
           
 
Constructor Summary
BinaryInputStream(java.io.InputStream input)
           
 
Method Summary
 void pad_u8()
           
 boolean read_bit()
           
 int read_u16()
           
 long read_u32()
           
 int read_u8()
           
 int read_un(int n)
           
 int read_uv()
           
 int read()
           
 int read(byte[] bytes)
           
 int read(byte[] bytes, int offset, int length)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

protected java.io.InputStream input

value

protected int value

count

protected int count
Constructor Detail

BinaryInputStream

public BinaryInputStream(java.io.InputStream input)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] bytes)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] bytes,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read_u8

public int read_u8()
            throws java.io.IOException
Throws:
java.io.IOException

read_u16

public int read_u16()
             throws java.io.IOException
Throws:
java.io.IOException

read_u32

public long read_u32()
              throws java.io.IOException
Throws:
java.io.IOException

read_un

public int read_un(int n)
            throws java.io.IOException
Throws:
java.io.IOException

read_uv

public int read_uv()
            throws java.io.IOException
Throws:
java.io.IOException

read_bit

public boolean read_bit()
                 throws java.io.IOException
Throws:
java.io.IOException

pad_u8

public void pad_u8()
            throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2013 David J. Pearce. All Rights Reserved.