public class ByteFileBuffered extends Object implements ByteInSeekable
BitFileBuffered
This class uses a "file pool", so pay attention to close unused resourcesModifier and Type | Class and Description |
---|---|
static class |
ByteFileBuffered.BufferedFileByteIn |
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
ByteFileBuffered(String filename)
Constructs an instance of the class for a given filename.
|
ByteFileBuffered(String filename,
int bufSize)
Constructs an instance of the class for a given filename
|
public ByteFileBuffered(String filename)
filename
- java.lang.String the name of the underlying filepublic ByteFileBuffered(String filename, int bufSize)
filename
- java.lang.String the name of the underlying filebufSize
- how much of the file to bufferpublic void close()
close
in interface Closeable
close
in interface AutoCloseable
public ByteIn readReset(long startByteOffset, long endByteOffset) throws IOException
readReset
in interface ByteInSeekable
IOException
public ByteIn readReset(long startByteOffset) throws IOException
readReset
in interface ByteInSeekable
IOException
public void reclaim(RandomDataInput file)
Terrier 4.0. Copyright © 2004-2014 University of Glasgow