public class TStandardFile extends java.lang.Object implements TSeekableFile
Modifier and Type | Field and Description |
---|---|
protected java.io.RandomAccessFile |
inputFile_ |
protected java.lang.String |
path_ |
Constructor and Description |
---|
TStandardFile(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
long |
length() |
void |
seek(long pos) |
protected java.lang.String path_
protected java.io.RandomAccessFile inputFile_
public TStandardFile(java.lang.String path) throws java.io.IOException
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface TSeekableFile
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface TSeekableFile
java.io.IOException
public void close() throws java.io.IOException
close
in interface TSeekableFile
java.io.IOException
public long length() throws java.io.IOException
length
in interface TSeekableFile
java.io.IOException
public void seek(long pos) throws java.io.IOException
seek
in interface TSeekableFile
java.io.IOException