public static class IRandomAccessAdapter.ModernWrapper extends Object implements IRandomAccess, Wrapper<IRandomAccess>
All functionality is delegated to the scifio implementation.
| Constructor and Description |
|---|
IRandomAccessAdapter.ModernWrapper(IRandomAccess ira) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this random access stream and releases
any system resources associated with the stream.
|
boolean |
equals(Object obj) |
long |
getFilePointer()
Returns the current offset in this stream.
|
ByteOrder |
getOrder()
Returns the current order of the stream.
|
int |
hashCode() |
long |
length()
Returns the length of this stream.
|
int |
read(byte[] b)
Reads up to b.length bytes of data
from this stream into an array of bytes.
|
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this stream into an array of bytes.
|
int |
read(ByteBuffer buffer)
Reads up to buffer.capacity() bytes of data
from this stream into a ByteBuffer.
|
int |
read(ByteBuffer buffer,
int offset,
int len)
Reads up to len bytes of data from this stream into a ByteBuffer.
|
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
seek(long pos)
Sets the stream pointer offset, measured from the beginning
of this stream, at which the next read or write occurs.
|
void |
setOrder(ByteOrder order)
Sets the byte order of the stream.
|
int |
skipBytes(int n) |
String |
toString() |
IRandomAccess |
unwrap()
Gets the wrapped object.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(ByteBuffer buf)
Writes up to buffer.capacity() bytes of data from the given
ByteBuffer to this stream.
|
void |
write(ByteBuffer buf,
int off,
int len)
Writes up to len bytes of data from the given ByteBuffer to this
stream.
|
void |
write(int b) |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeBytes(String s) |
void |
writeChar(int v) |
void |
writeChars(String s) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeUTF(String s) |
public IRandomAccessAdapter.ModernWrapper(IRandomAccess ira)
public IRandomAccess unwrap()
Wrapperunwrap in interface Wrapper<IRandomAccess>public boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic void write(int b)
throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] b)
throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputIOExceptionpublic void writeBoolean(boolean v)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void writeByte(int v)
throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeBytes(String s) throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeChar(int v)
throws IOException
writeChar in interface DataOutputIOExceptionpublic void writeChars(String s) throws IOException
writeChars in interface DataOutputIOExceptionpublic void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeInt(int v)
throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long v)
throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeShort(int v)
throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeUTF(String s) throws IOException
writeUTF in interface DataOutputIOExceptionpublic void close()
throws IOException
IRandomAccessclose in interface IRandomAccessIOExceptionpublic long getFilePointer()
throws IOException
IRandomAccessgetFilePointer in interface IRandomAccessIOExceptionpublic long length()
throws IOException
IRandomAccesslength in interface IRandomAccessIOExceptionpublic ByteOrder getOrder()
IRandomAccessgetOrder in interface IRandomAccesspublic void setOrder(ByteOrder order)
IRandomAccesssetOrder in interface IRandomAccessorder - Order to set.public int read(byte[] b)
throws IOException
IRandomAccessread in interface IRandomAccessIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
IRandomAccessread in interface IRandomAccessIOExceptionpublic int read(ByteBuffer buffer) throws IOException
IRandomAccessread in interface IRandomAccessIOExceptionpublic int read(ByteBuffer buffer, int offset, int len) throws IOException
IRandomAccessread in interface IRandomAccessIOExceptionpublic void seek(long pos)
throws IOException
IRandomAccessseek in interface IRandomAccessIOExceptionpublic void write(ByteBuffer buf) throws IOException
IRandomAccesswrite in interface IRandomAccessIOExceptionpublic void write(ByteBuffer buf, int off, int len) throws IOException
IRandomAccesswrite in interface IRandomAccessIOExceptionCopyright © 2014 Open Microscopy Environment