Package 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
Fields Modifier and Type Field Description protected java.io.RandomAccessFile
inputFile_
protected java.lang.String
path_
-
Constructor Summary
Constructors Constructor Description TStandardFile(java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.io.InputStream
getInputStream()
java.io.OutputStream
getOutputStream()
long
length()
void
seek(long pos)
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Specified by:
getInputStream
in interfaceTSeekableFile
- Throws:
java.io.IOException
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException
- Specified by:
getOutputStream
in interfaceTSeekableFile
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfaceTSeekableFile
- Throws:
java.io.IOException
-
length
public long length() throws java.io.IOException
- Specified by:
length
in interfaceTSeekableFile
- Throws:
java.io.IOException
-
seek
public void seek(long pos) throws java.io.IOException
- Specified by:
seek
in interfaceTSeekableFile
- Throws:
java.io.IOException
-
-