org.apache.thrift.transport
Class TStandardFile
java.lang.Object
org.apache.thrift.transport.TStandardFile
- All Implemented Interfaces:
- TSeekableFile
public class TStandardFile
- extends java.lang.Object
- implements TSeekableFile
Field Summary |
protected java.io.RandomAccessFile |
inputFile_
|
protected java.lang.String |
path_
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
path_
protected java.lang.String path_
inputFile_
protected java.io.RandomAccessFile inputFile_
TStandardFile
public TStandardFile(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream
in interface TSeekableFile
- Throws:
java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Specified by:
getOutputStream
in interface TSeekableFile
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface TSeekableFile
- Throws:
java.io.IOException
length
public long length()
throws java.io.IOException
- Specified by:
length
in interface TSeekableFile
- Throws:
java.io.IOException
seek
public void seek(long pos)
throws java.io.IOException
- Specified by:
seek
in interface TSeekableFile
- Throws:
java.io.IOException