com.imagero.uio.impl
Class AbstractRandomAccessInput
java.lang.Object
java.io.InputStream
com.imagero.uio.impl.AbstractRandomAccessInput
- All Implemented Interfaces:
- AdvancedDataInput, java.io.DataInput, Input, ISeekable, RandomAccessInput
- Direct Known Subclasses:
- AbstractRandomAccessIO, BaisWrapper
- public abstract class AbstractRandomAccessInput
- extends java.io.InputStream
- implements RandomAccessInput
|
Method Summary |
int |
getByteOrder()
get byte order |
boolean |
isBuffered()
|
int |
read(byte[] b)
|
int |
read(char[] dest)
|
int |
read(char[] dest,
int byteOrder)
|
int |
read(char[] dest,
int offset,
int length)
|
int |
read(char[] dest,
int destOffset,
int len,
int byteOrder)
|
int |
read(double[] dest)
|
int |
read(double[] dest,
int byteOrder)
|
int |
read(double[] dest,
int offset,
int length)
|
int |
read(double[] dest,
int destOffset,
int len,
int byteOrder)
|
int |
read(float[] dest)
|
int |
read(float[] dest,
int byteOrder)
|
int |
read(float[] dest,
int offset,
int length)
|
int |
read(float[] dest,
int destOffset,
int len,
int byteOrder)
|
int |
read(int[] dest)
|
int |
read(int[] dest,
int byteOrder)
|
int |
read(int[] dest,
int offset,
int length)
|
int |
read(int[] dest,
int destOffset,
int len,
int byteOrder)
|
int |
read(long[] dest)
|
int |
read(long[] dest,
int byteOrder)
|
int |
read(long[] dest,
int offset,
int length)
|
int |
read(long[] dest,
int destOffset,
int len,
int byteOrder)
|
int |
read(short[] dest)
|
int |
read(short[] dest,
int byteOrder)
|
int |
read(short[] dest,
int offset,
int length)
|
int |
read(short[] dest,
int destOffset,
int len,
int byteOrder)
|
boolean |
readBoolean()
|
byte |
readByte()
|
byte[] |
readByteLine()
|
int |
readByteLine(byte[] dest)
|
char |
readChar()
|
char |
readChar(int byteOrder)
|
double |
readDouble()
|
double |
readDouble(int byteOrder)
|
float |
readFloat()
|
float |
readFloat(int byteOrder)
|
void |
readFully(byte[] b)
|
void |
readFully(byte[] b,
int off,
int len)
|
void |
readFully(char[] dest)
|
void |
readFully(char[] dest,
int byteOrder)
|
void |
readFully(char[] dest,
int destOffset,
int len)
|
void |
readFully(char[] dest,
int offset,
int length,
int byteOrder)
|
void |
readFully(double[] dest)
|
void |
readFully(double[] dest,
int byteOrder)
|
void |
readFully(double[] dest,
int destOffset,
int len)
|
void |
readFully(double[] dest,
int offset,
int length,
int byteOrder)
|
void |
readFully(float[] dest)
|
void |
readFully(float[] dest,
int byteOrder)
|
void |
readFully(float[] dest,
int destOffset,
int len)
|
void |
readFully(float[] dest,
int offset,
int length,
int byteOrder)
|
void |
readFully(int[] dest)
|
void |
readFully(int[] dest,
int byteOrder)
|
void |
readFully(int[] dest,
int destOffset,
int len)
|
void |
readFully(int[] dest,
int offset,
int length,
int byteOrder)
|
void |
readFully(long[] dest)
|
void |
readFully(long[] dest,
int byteOrder)
|
void |
readFully(long[] dest,
int destOffset,
int len)
|
void |
readFully(long[] dest,
int offset,
int length,
int byteOrder)
|
void |
readFully(short[] dest)
|
void |
readFully(short[] dest,
int byteOrder)
|
void |
readFully(short[] dest,
int destOffset,
int len)
|
void |
readFully(short[] dest,
int offset,
int length,
int byteOrder)
|
int |
readInt()
|
int |
readInt(int byteOrder)
|
java.lang.String |
readLine()
|
long |
readLong()
|
long |
readLong(int byteOrder)
|
short |
readShort()
|
short |
readShort(int byteOrder)
|
int |
readUnsignedByte()
|
int |
readUnsignedShort()
|
int |
readUnsignedShort(int byteOrder)
|
java.lang.String |
readUTF()
|
void |
setByteOrder(int byteOrder)
set byte order |
int |
skipBytes(int n)
|
| Methods inherited from class java.io.InputStream |
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 |
byteOrder
protected int byteOrder
AbstractRandomAccessInput
public AbstractRandomAccessInput()
getByteOrder
public int getByteOrder()
- Description copied from interface:
ISeekable
- get byte order
- Specified by:
getByteOrder in interface ISeekable
- Returns:
- #BIG_ENDIAN or #LITTLE_ENDIAN
- See Also:
ISeekable.BIG_ENDIAN,
ISeekable.LITTLE_ENDIAN
setByteOrder
public void setByteOrder(int byteOrder)
- Description copied from interface:
ISeekable
- set byte order
- Specified by:
setByteOrder in interface ISeekable
- Parameters:
byteOrder - - See Also:
ISeekable.BIG_ENDIAN,
ISeekable.LITTLE_ENDIAN
isBuffered
public boolean isBuffered()
- Specified by:
isBuffered in interface ISeekable
read
public final int read(short[] dest)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(short[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(short[] dest,
int offset,
int length)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(char[] dest)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(char[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(char[] dest,
int offset,
int length)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(int[] dest)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(int[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(int[] dest,
int offset,
int length)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(long[] dest)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(long[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(long[] dest,
int offset,
int length)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(float[] dest)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(float[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(float[] dest,
int offset,
int length)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(double[] dest)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(double[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(double[] dest,
int offset,
int length)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(short[] dest)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(short[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(short[] dest,
int destOffset,
int len)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(char[] dest)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(char[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(char[] dest,
int destOffset,
int len)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(int[] dest)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(int[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(int[] dest,
int destOffset,
int len)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(long[] dest)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(long[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(long[] dest,
int destOffset,
int len)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(float[] dest)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(float[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(float[] dest,
int destOffset,
int len)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(double[] dest)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(double[] dest,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(double[] dest,
int destOffset,
int len)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(short[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(char[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(int[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(long[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(float[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public final void readFully(double[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
- Specified by:
readFully in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public final int read(byte[] b)
throws java.io.IOException
- Specified by:
read in interface Input
- Throws:
java.io.IOException
readFully
public final void readFully(byte[] b)
throws java.io.IOException
- Specified by:
readFully in interface java.io.DataInput
- Throws:
java.io.IOException
skipBytes
public int skipBytes(int n)
throws java.io.IOException
- Specified by:
skipBytes in interface java.io.DataInput
- Throws:
java.io.IOException
readBoolean
public final boolean readBoolean()
throws java.io.IOException
- Specified by:
readBoolean in interface java.io.DataInput
- Throws:
java.io.IOException
readByte
public final byte readByte()
throws java.io.IOException
- Specified by:
readByte in interface java.io.DataInput
- Throws:
java.io.IOException
readUnsignedByte
public final int readUnsignedByte()
throws java.io.IOException
- Specified by:
readUnsignedByte in interface java.io.DataInput
- Throws:
java.io.IOException
readShort
public final short readShort()
throws java.io.IOException
- Specified by:
readShort in interface java.io.DataInput
- Throws:
java.io.IOException
readUnsignedShort
public final int readUnsignedShort()
throws java.io.IOException
- Specified by:
readUnsignedShort in interface java.io.DataInput
- Throws:
java.io.IOException
readUnsignedShort
public final int readUnsignedShort(int byteOrder)
throws java.io.IOException
- Specified by:
readUnsignedShort in interface AdvancedDataInput
- Throws:
java.io.IOException
readShort
public final short readShort(int byteOrder)
throws java.io.IOException
- Specified by:
readShort in interface AdvancedDataInput
- Throws:
java.io.IOException
readChar
public final char readChar()
throws java.io.IOException
- Specified by:
readChar in interface java.io.DataInput
- Throws:
java.io.IOException
readChar
public final char readChar(int byteOrder)
throws java.io.IOException
- Specified by:
readChar in interface AdvancedDataInput
- Throws:
java.io.IOException
readInt
public final int readInt()
throws java.io.IOException
- Specified by:
readInt in interface java.io.DataInput
- Throws:
java.io.IOException
readInt
public final int readInt(int byteOrder)
throws java.io.IOException
- Specified by:
readInt in interface AdvancedDataInput
- Throws:
java.io.IOException
readLong
public final long readLong()
throws java.io.IOException
- Specified by:
readLong in interface java.io.DataInput
- Throws:
java.io.IOException
readLong
public final long readLong(int byteOrder)
throws java.io.IOException
- Specified by:
readLong in interface AdvancedDataInput
- Throws:
java.io.IOException
readFloat
public final float readFloat()
throws java.io.IOException
- Specified by:
readFloat in interface java.io.DataInput
- Throws:
java.io.IOException
readFloat
public final float readFloat(int byteOrder)
throws java.io.IOException
- Specified by:
readFloat in interface AdvancedDataInput
- Throws:
java.io.IOException
readDouble
public final double readDouble()
throws java.io.IOException
- Specified by:
readDouble in interface java.io.DataInput
- Throws:
java.io.IOException
readDouble
public final double readDouble(int byteOrder)
throws java.io.IOException
- Specified by:
readDouble in interface AdvancedDataInput
- Throws:
java.io.IOException
readLine
public final java.lang.String readLine()
throws java.io.IOException
- Specified by:
readLine in interface java.io.DataInput
- Throws:
java.io.IOException
readUTF
public final java.lang.String readUTF()
throws java.io.IOException
- Specified by:
readUTF in interface java.io.DataInput
- Throws:
java.io.IOException
readByteLine
public final byte[] readByteLine()
throws java.io.IOException
- Specified by:
readByteLine in interface AdvancedDataInput
- Throws:
java.io.IOException
readByteLine
public final int readByteLine(byte[] dest)
throws java.io.IOException
- Specified by:
readByteLine in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public int read(short[] dest,
int destOffset,
int len,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public int read(char[] dest,
int destOffset,
int len,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public int read(int[] dest,
int destOffset,
int len,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public int read(float[] dest,
int destOffset,
int len,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public int read(long[] dest,
int destOffset,
int len,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
read
public int read(double[] dest,
int destOffset,
int len,
int byteOrder)
throws java.io.IOException
- Specified by:
read in interface AdvancedDataInput
- Throws:
java.io.IOException
readFully
public void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
- Specified by:
readFully in interface java.io.DataInput
- Throws:
java.io.IOException