public class DataHandleAdapter
extends loci.common.RandomAccessInputStream
implements loci.common.IRandomAccess
DataHandle
to
RandomAccessInputStream
.Constructor and Description |
---|
DataHandleAdapter(DataHandle<Location> handle) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
boolean |
exists() |
String |
findString(boolean saveString,
int blockSize,
String... terminators) |
String |
findString(boolean saveString,
String... terminators) |
String |
findString(int blockSize,
String... terminators) |
String |
findString(String... terminators) |
long |
getFilePointer() |
ByteOrder |
getOrder() |
boolean |
isLittleEndian() |
long |
length() |
void |
mark(int readLimit) |
boolean |
markSupported() |
void |
order(boolean little) |
int |
read() |
int |
read(byte[] array) |
int |
read(byte[] array,
int offset,
int n) |
int |
read(ByteBuffer buf) |
int |
read(ByteBuffer buf,
int offset,
int n) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
String |
readCString() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] array) |
void |
readFully(byte[] array,
int offset,
int n) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
String |
readString(int n) |
String |
readString(String lastChars) |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
reset() |
void |
seek(long pos) |
void |
setEncoding(String encoding) |
void |
setLength(long newLength) |
void |
setOrder(ByteOrder order) |
int |
skipBytes(int n) |
DataHandle<Location> |
unwrap() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(ByteBuffer buf) |
void |
write(ByteBuffer buf,
int off,
int len) |
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) |
isBitOnByteBoundary, read, readBits, readByteToString, readUnsignedInt, skipBits, skipBytes, write
skip
public DataHandleAdapter(DataHandle<Location> handle) throws IOException
IOException
public DataHandle<Location> unwrap()
public void setEncoding(String encoding)
setEncoding
in class loci.common.RandomAccessInputStream
public void seek(long pos) throws IOException
seek
in interface loci.common.IRandomAccess
seek
in class loci.common.RandomAccessInputStream
IOException
public long length() throws IOException
length
in interface loci.common.IRandomAccess
length
in class loci.common.RandomAccessInputStream
IOException
public void setLength(long newLength) throws IOException
setLength
in class loci.common.RandomAccessInputStream
IOException
public long getFilePointer() throws IOException
getFilePointer
in interface loci.common.IRandomAccess
getFilePointer
in class loci.common.RandomAccessInputStream
IOException
public boolean exists() throws IOException
exists
in interface loci.common.IRandomAccess
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface loci.common.IRandomAccess
close
in class loci.common.RandomAccessInputStream
IOException
public void order(boolean little)
order
in class loci.common.RandomAccessInputStream
public boolean isLittleEndian()
isLittleEndian
in class loci.common.RandomAccessInputStream
public String readString(String lastChars) throws IOException
readString
in class loci.common.RandomAccessInputStream
IOException
public String findString(String... terminators) throws IOException
findString
in class loci.common.RandomAccessInputStream
IOException
public String findString(boolean saveString, String... terminators) throws IOException
findString
in class loci.common.RandomAccessInputStream
IOException
public String findString(int blockSize, String... terminators) throws IOException
findString
in class loci.common.RandomAccessInputStream
IOException
public String findString(boolean saveString, int blockSize, String... terminators) throws IOException
findString
in class loci.common.RandomAccessInputStream
IOException
public boolean readBoolean() throws IOException
readBoolean
in interface DataInput
readBoolean
in class loci.common.RandomAccessInputStream
IOException
public byte readByte() throws IOException
readByte
in interface DataInput
readByte
in class loci.common.RandomAccessInputStream
IOException
public char readChar() throws IOException
readChar
in interface DataInput
readChar
in class loci.common.RandomAccessInputStream
IOException
public double readDouble() throws IOException
readDouble
in interface DataInput
readDouble
in class loci.common.RandomAccessInputStream
IOException
public float readFloat() throws IOException
readFloat
in interface DataInput
readFloat
in class loci.common.RandomAccessInputStream
IOException
public int readInt() throws IOException
readInt
in interface DataInput
readInt
in class loci.common.RandomAccessInputStream
IOException
public String readLine() throws IOException
readLine
in interface DataInput
readLine
in class loci.common.RandomAccessInputStream
IOException
public String readCString() throws IOException
readCString
in class loci.common.RandomAccessInputStream
IOException
public String readString(int n) throws IOException
readString
in class loci.common.RandomAccessInputStream
IOException
public long readLong() throws IOException
readLong
in interface DataInput
readLong
in class loci.common.RandomAccessInputStream
IOException
public short readShort() throws IOException
readShort
in interface DataInput
readShort
in class loci.common.RandomAccessInputStream
IOException
public int readUnsignedByte() throws IOException
readUnsignedByte
in interface DataInput
readUnsignedByte
in class loci.common.RandomAccessInputStream
IOException
public int readUnsignedShort() throws IOException
readUnsignedShort
in interface DataInput
readUnsignedShort
in class loci.common.RandomAccessInputStream
IOException
public String readUTF() throws IOException
readUTF
in interface DataInput
readUTF
in class loci.common.RandomAccessInputStream
IOException
public int skipBytes(int n) throws IOException
skipBytes
in interface DataInput
skipBytes
in class loci.common.RandomAccessInputStream
IOException
public int read(byte[] array) throws IOException
read
in interface loci.common.IRandomAccess
read
in class loci.common.RandomAccessInputStream
IOException
public int read(byte[] array, int offset, int n) throws IOException
read
in interface loci.common.IRandomAccess
read
in class loci.common.RandomAccessInputStream
IOException
public int read(ByteBuffer buf) throws IOException
read
in interface loci.common.IRandomAccess
read
in class loci.common.RandomAccessInputStream
IOException
public int read(ByteBuffer buf, int offset, int n) throws IOException
read
in interface loci.common.IRandomAccess
read
in class loci.common.RandomAccessInputStream
IOException
public void readFully(byte[] array) throws IOException
readFully
in interface DataInput
readFully
in class loci.common.RandomAccessInputStream
IOException
public void readFully(byte[] array, int offset, int n) throws IOException
readFully
in interface DataInput
readFully
in class loci.common.RandomAccessInputStream
IOException
public int read() throws IOException
read
in class loci.common.RandomAccessInputStream
IOException
public int available() throws IOException
available
in class loci.common.RandomAccessInputStream
IOException
public void mark(int readLimit)
mark
in class loci.common.RandomAccessInputStream
public boolean markSupported()
markSupported
in class loci.common.RandomAccessInputStream
public void reset() throws IOException
reset
in class loci.common.RandomAccessInputStream
IOException
public void write(int b) throws IOException
write
in interface DataOutput
IOException
public void write(byte[] b) throws IOException
write
in interface DataOutput
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in interface DataOutput
IOException
public void writeBoolean(boolean v) throws IOException
writeBoolean
in interface DataOutput
IOException
public void writeByte(int v) throws IOException
writeByte
in interface DataOutput
IOException
public void writeShort(int v) throws IOException
writeShort
in interface DataOutput
IOException
public void writeChar(int v) throws IOException
writeChar
in interface DataOutput
IOException
public void writeInt(int v) throws IOException
writeInt
in interface DataOutput
IOException
public void writeLong(long v) throws IOException
writeLong
in interface DataOutput
IOException
public void writeFloat(float v) throws IOException
writeFloat
in interface DataOutput
IOException
public void writeDouble(double v) throws IOException
writeDouble
in interface DataOutput
IOException
public void writeBytes(String s) throws IOException
writeBytes
in interface DataOutput
IOException
public void writeChars(String s) throws IOException
writeChars
in interface DataOutput
IOException
public void writeUTF(String s) throws IOException
writeUTF
in interface DataOutput
IOException
public ByteOrder getOrder()
getOrder
in interface loci.common.IRandomAccess
public void setOrder(ByteOrder order)
setOrder
in interface loci.common.IRandomAccess
public void write(ByteBuffer buf) throws IOException
write
in interface loci.common.IRandomAccess
IOException
public void write(ByteBuffer buf, int off, int len) throws IOException
write
in interface loci.common.IRandomAccess
IOException
Copyright © 2015–2022 SCIFIO. All rights reserved.