|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
com.imagero.uio.impl.AbstractRandomAccessInput
com.imagero.uio.impl.AbstractRandomAccessIO
com.imagero.uio.bio.BufferedRandomAccessIO
BufferedRandomAccessIO - buffered readable and writable stream with random access.
| Field Summary |
| Fields inherited from class com.imagero.uio.impl.AbstractRandomAccessInput |
byteOrder |
| Fields inherited from interface com.imagero.uio.ISeekable |
BIG_ENDIAN, LITTLE_ENDIAN |
| Constructor Summary | |
BufferedRandomAccessIO(IOController controller)
|
|
BufferedRandomAccessIO(IOController controller,
long offset)
|
|
| Method Summary | |
int |
available()
|
void |
close()
|
RandomAccessInput |
createInputChild(long offset,
int byteOrder,
boolean syncPointer)
|
java.io.InputStream |
createInputStream(long offset)
|
RandomAccessIO |
createIOChild(long offset,
int byteOrder,
boolean syncPointer)
|
RandomAccessOutput |
createOutputChild(long offset,
int byteOrder,
boolean syncPointer)
|
java.io.OutputStream |
createOutputStream(long offset)
|
void |
flush()
|
long |
flushBefore(long pos)
|
int |
getByteOrder()
get byte order |
long |
getFilePointer()
Since this is an interface and is not restricted to files, "getFilePointer" is wrong name for this method. |
boolean |
isBuffered()
|
long |
length()
get length of data |
protected void |
prepareBufferForReading(com.imagero.uio.bio.BufferIndex index)
|
protected void |
prepareBufferForWriting(com.imagero.uio.bio.BufferIndex index)
|
int |
read()
|
int |
read(byte[] b,
int offset,
int length)
|
int |
read(char[] dest,
int offset,
int length,
int byteOrder)
|
int |
read(double[] dest,
int offset,
int length,
int byteOrder)
|
int |
read(float[] dest,
int offset,
int length,
int byteOrder)
|
int |
read(int[] dest,
int offset,
int length,
int byteOrder)
|
int |
read(long[] dest,
int offset,
int length,
int byteOrder)
|
int |
read(short[] dest,
int offset,
int length,
int byteOrder)
|
void |
readFully(byte[] b,
int offset,
int length)
|
void |
seek(long pos)
set current cursor position to specified offset |
void |
setByteOrder(int byteOrder)
set byte order |
void |
setLength(long newLength)
Set length of stream. |
long |
skip(long n)
|
void |
write(byte[] b,
int offset,
int length)
|
void |
write(char[] data,
int offset,
int length,
int byteOrder)
|
void |
write(double[] data,
int offset,
int length,
int byteOrder)
|
void |
write(float[] data,
int offset,
int length,
int byteOrder)
|
void |
write(int b)
|
void |
write(int[] data,
int offset,
int length,
int byteOrder)
|
void |
write(long[] data,
int offset,
int length,
int byteOrder)
|
void |
write(short[] data,
int offset,
int length,
int byteOrder)
|
void |
writeBuffer(java.io.DataOutput out)
write buffer contents to DataOutput |
void |
writeBuffer(java.io.OutputStream out)
write buffer contents to given OutputStream |
| Methods inherited from class com.imagero.uio.impl.AbstractRandomAccessIO |
transform, transform, transform, transform, transform, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChar, writeChars, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeLong, writeLong, writeShort, writeShort, writeUTF |
| Methods inherited from class com.imagero.uio.impl.AbstractRandomAccessInput |
read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, readBoolean, readByte, readByteLine, readByteLine, readChar, readChar, readDouble, readDouble, readFloat, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readInt, readLine, readLong, readLong, readShort, readShort, readUnsignedByte, readUnsignedShort, readUnsignedShort, readUTF, skipBytes |
| Methods inherited from class java.io.InputStream |
mark, markSupported, reset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.imagero.uio.Input |
read |
| Methods inherited from interface com.imagero.uio.AdvancedDataInput |
read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, readByteLine, readByteLine, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLong, readShort, readUnsignedShort |
| Methods inherited from interface java.io.DataInput |
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
| Constructor Detail |
public BufferedRandomAccessIO(IOController controller)
public BufferedRandomAccessIO(IOController controller,
long offset)
| Method Detail |
public final void setLength(long newLength)
throws java.io.IOException
OSeekable
newLength - new stream length
java.io.IOExceptionpublic long flushBefore(long pos)
protected void prepareBufferForReading(com.imagero.uio.bio.BufferIndex index)
throws java.io.IOException
java.io.IOException
protected void prepareBufferForWriting(com.imagero.uio.bio.BufferIndex index)
throws java.io.IOException
java.io.IOException
public void write(short[] data,
int offset,
int length,
int byteOrder)
throws java.io.IOException
write in interface AdvancedDataOutputwrite in class AbstractRandomAccessIOjava.io.IOException
public void write(char[] data,
int offset,
int length,
int byteOrder)
throws java.io.IOException
write in interface AdvancedDataOutputwrite in class AbstractRandomAccessIOjava.io.IOException
public void write(int[] data,
int offset,
int length,
int byteOrder)
throws java.io.IOException
write in interface AdvancedDataOutputwrite in class AbstractRandomAccessIOjava.io.IOException
public void write(float[] data,
int offset,
int length,
int byteOrder)
throws java.io.IOException
write in interface AdvancedDataOutputwrite in class AbstractRandomAccessIOjava.io.IOException
public void write(long[] data,
int offset,
int length,
int byteOrder)
throws java.io.IOException
write in interface AdvancedDataOutputwrite in class AbstractRandomAccessIOjava.io.IOException
public void write(double[] data,
int offset,
int length,
int byteOrder)
throws java.io.IOException
write in interface AdvancedDataOutputwrite in class AbstractRandomAccessIOjava.io.IOExceptionpublic long getFilePointer()
ISeekable
public long length()
throws java.io.IOException
ISeekable
java.io.IOExceptionpublic void seek(long pos)
ISeekableoffset
pos - new cursor position
public int available()
throws java.io.IOException
java.io.IOExceptionpublic int getByteOrder()
ISeekable
getByteOrder in interface ISeekablegetByteOrder in class AbstractRandomAccessInputpublic void setByteOrder(int byteOrder)
ISeekable
setByteOrder in interface ISeekablesetByteOrder in class AbstractRandomAccessInput
public void write(int b)
throws java.io.IOException
java.io.IOException
public void write(byte[] b,
int offset,
int length)
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException
public void writeBuffer(java.io.OutputStream out)
throws java.io.IOException
out - OutputStream
java.io.IOException
public void writeBuffer(java.io.DataOutput out)
throws java.io.IOException
out - OutputStream
java.io.IOException
public int read(short[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
read in interface AdvancedDataInputread in class AbstractRandomAccessInputjava.io.IOException
public int read(char[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
read in interface AdvancedDataInputread in class AbstractRandomAccessInputjava.io.IOException
public int read(int[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
read in interface AdvancedDataInputread in class AbstractRandomAccessInputjava.io.IOException
public int read(long[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
read in interface AdvancedDataInputread in class AbstractRandomAccessInputjava.io.IOException
public int read(float[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
read in interface AdvancedDataInputread in class AbstractRandomAccessInputjava.io.IOException
public int read(double[] dest,
int offset,
int length,
int byteOrder)
throws java.io.IOException
read in interface AdvancedDataInputread in class AbstractRandomAccessInputjava.io.IOException
public int read()
throws java.io.IOException
java.io.IOException
public long skip(long n)
throws java.io.IOException
java.io.IOException
public int read(byte[] b,
int offset,
int length)
throws java.io.IOException
java.io.IOException
public void readFully(byte[] b,
int offset,
int length)
throws java.io.IOException
readFully in interface java.io.DataInputreadFully in class AbstractRandomAccessInputjava.io.IOException
public RandomAccessIO createIOChild(long offset,
int byteOrder,
boolean syncPointer)
public RandomAccessInput createInputChild(long offset,
int byteOrder,
boolean syncPointer)
public java.io.InputStream createInputStream(long offset)
public RandomAccessOutput createOutputChild(long offset,
int byteOrder,
boolean syncPointer)
public java.io.OutputStream createOutputStream(long offset)
public void flush()
throws java.io.IOException
flush in interface RandomAccessOutputflush in class AbstractRandomAccessIOjava.io.IOExceptionpublic boolean isBuffered()
isBuffered in interface ISeekableisBuffered in class AbstractRandomAccessInput
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||