jasm.io
Class BinaryInputStream
java.lang.Object
java.io.InputStream
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
|
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 |
input
protected java.io.InputStream input
value
protected int value
count
protected int count
BinaryInputStream
public BinaryInputStream(java.io.InputStream input)
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.