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.IOExceptionpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface TSeekableFilejava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface TSeekableFilejava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface TSeekableFilejava.io.IOExceptionpublic long length()
throws java.io.IOException
length in interface TSeekableFilejava.io.IOExceptionpublic void seek(long pos)
throws java.io.IOException
seek in interface TSeekableFilejava.io.IOException