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, writeskippublic DataHandleAdapter(DataHandle<Location> handle) throws IOException
IOExceptionpublic DataHandle<Location> unwrap()
public void setEncoding(String encoding)
setEncoding in class loci.common.RandomAccessInputStreampublic void seek(long pos)
throws IOException
seek in interface loci.common.IRandomAccessseek in class loci.common.RandomAccessInputStreamIOExceptionpublic long length()
throws IOException
length in interface loci.common.IRandomAccesslength in class loci.common.RandomAccessInputStreamIOExceptionpublic void setLength(long newLength)
throws IOException
setLength in class loci.common.RandomAccessInputStreamIOExceptionpublic long getFilePointer()
throws IOException
getFilePointer in interface loci.common.IRandomAccessgetFilePointer in class loci.common.RandomAccessInputStreamIOExceptionpublic boolean exists()
throws IOException
exists in interface loci.common.IRandomAccessIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface loci.common.IRandomAccessclose in class loci.common.RandomAccessInputStreamIOExceptionpublic void order(boolean little)
order in class loci.common.RandomAccessInputStreampublic boolean isLittleEndian()
isLittleEndian in class loci.common.RandomAccessInputStreampublic String readString(String lastChars) throws IOException
readString in class loci.common.RandomAccessInputStreamIOExceptionpublic String findString(String... terminators) throws IOException
findString in class loci.common.RandomAccessInputStreamIOExceptionpublic String findString(boolean saveString, String... terminators) throws IOException
findString in class loci.common.RandomAccessInputStreamIOExceptionpublic String findString(int blockSize, String... terminators) throws IOException
findString in class loci.common.RandomAccessInputStreamIOExceptionpublic String findString(boolean saveString, int blockSize, String... terminators) throws IOException
findString in class loci.common.RandomAccessInputStreamIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in class loci.common.RandomAccessInputStreamIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputreadByte in class loci.common.RandomAccessInputStreamIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputreadChar in class loci.common.RandomAccessInputStreamIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in class loci.common.RandomAccessInputStreamIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in class loci.common.RandomAccessInputStreamIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputreadInt in class loci.common.RandomAccessInputStreamIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputreadLine in class loci.common.RandomAccessInputStreamIOExceptionpublic String readCString() throws IOException
readCString in class loci.common.RandomAccessInputStreamIOExceptionpublic String readString(int n) throws IOException
readString in class loci.common.RandomAccessInputStreamIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputreadLong in class loci.common.RandomAccessInputStreamIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputreadShort in class loci.common.RandomAccessInputStreamIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in class loci.common.RandomAccessInputStreamIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in class loci.common.RandomAccessInputStreamIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputreadUTF in class loci.common.RandomAccessInputStreamIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputskipBytes in class loci.common.RandomAccessInputStreamIOExceptionpublic int read(byte[] array)
throws IOException
read in interface loci.common.IRandomAccessread in class loci.common.RandomAccessInputStreamIOExceptionpublic int read(byte[] array,
int offset,
int n)
throws IOException
read in interface loci.common.IRandomAccessread in class loci.common.RandomAccessInputStreamIOExceptionpublic int read(ByteBuffer buf) throws IOException
read in interface loci.common.IRandomAccessread in class loci.common.RandomAccessInputStreamIOExceptionpublic int read(ByteBuffer buf, int offset, int n) throws IOException
read in interface loci.common.IRandomAccessread in class loci.common.RandomAccessInputStreamIOExceptionpublic void readFully(byte[] array)
throws IOException
readFully in interface DataInputreadFully in class loci.common.RandomAccessInputStreamIOExceptionpublic void readFully(byte[] array,
int offset,
int n)
throws IOException
readFully in interface DataInputreadFully in class loci.common.RandomAccessInputStreamIOExceptionpublic int read()
throws IOException
read in class loci.common.RandomAccessInputStreamIOExceptionpublic int available()
throws IOException
available in class loci.common.RandomAccessInputStreamIOExceptionpublic void mark(int readLimit)
mark in class loci.common.RandomAccessInputStreampublic boolean markSupported()
markSupported in class loci.common.RandomAccessInputStreampublic void reset()
throws IOException
reset in class loci.common.RandomAccessInputStreamIOExceptionpublic 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 writeShort(int v)
throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeChar(int v)
throws IOException
writeChar in interface DataOutputIOExceptionpublic void writeInt(int v)
throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long v)
throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeBytes(String s) throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeChars(String s) throws IOException
writeChars in interface DataOutputIOExceptionpublic void writeUTF(String s) throws IOException
writeUTF in interface DataOutputIOExceptionpublic ByteOrder getOrder()
getOrder in interface loci.common.IRandomAccesspublic void setOrder(ByteOrder order)
setOrder in interface loci.common.IRandomAccesspublic void write(ByteBuffer buf) throws IOException
write in interface loci.common.IRandomAccessIOExceptionpublic void write(ByteBuffer buf, int off, int len) throws IOException
write in interface loci.common.IRandomAccessIOExceptionCopyright © 2015–2022 SCIFIO. All rights reserved.