public class RandomDataInputMemory extends DataInputStream implements RandomDataInput, Cloneable
Modifier and Type | Field and Description |
---|---|
protected org.terrier.utility.io.RandomDataInputMemory.Seekable |
buf
input stream to use
|
in
Modifier | Constructor and Description |
---|---|
|
RandomDataInputMemory(byte[] b)
Construct a new RandomDataInputMemory object, backed by the specified buffer
|
|
RandomDataInputMemory(DataInputStream in,
long length)
Construct a new RandomDataInputMemory object, backed by the specified buffer
|
protected |
RandomDataInputMemory(InputStream seekable) |
|
RandomDataInputMemory(String filename)
Construct a new RandomDataInputMemory object, backed by the specified file
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
void |
close() |
long |
getFilePointer()
Return the current position in the file
|
long |
length()
Returns the length of the file
|
void |
seek(long _pos)
Seek to specified position in the file
|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
available, mark, markSupported, read, reset, skip
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
protected org.terrier.utility.io.RandomDataInputMemory.Seekable buf
protected RandomDataInputMemory(InputStream seekable) throws IOException
IOException
public RandomDataInputMemory(String filename) throws IOException
IOException
public RandomDataInputMemory(DataInputStream in, long length) throws IOException
IOException
public RandomDataInputMemory(byte[] b)
public long getFilePointer() throws IOException
getFilePointer
in interface RandomDataInput
IOException
public long length() throws IOException
length
in interface RandomDataInput
IOException
public void seek(long _pos) throws IOException
seek
in interface RandomDataInput
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow