public class RandomDataInputMemory extends DataInputStream implements RandomDataInput, Cloneable
| Modifier and Type | Field and Description | 
|---|---|
| protected org.terrier.utility.io.RandomDataInputMemory.Seekable | bufinput 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, skipBytesavailable, mark, markSupported, read, reset, skipequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesprotected org.terrier.utility.io.RandomDataInputMemory.Seekable buf
protected RandomDataInputMemory(InputStream seekable) throws IOException
IOExceptionpublic RandomDataInputMemory(String filename) throws IOException
IOExceptionpublic RandomDataInputMemory(DataInputStream in, long length) throws IOException
IOExceptionpublic RandomDataInputMemory(byte[] b)
public long getFilePointer()
                    throws IOException
getFilePointer in interface RandomDataInputIOExceptionpublic long length()
            throws IOException
length in interface RandomDataInputIOExceptionpublic void seek(long _pos)
          throws IOException
seek in interface RandomDataInputIOExceptionpublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow