org.apache.hadoop.fs
Class FSDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.apache.hadoop.fs.FSDataInputStream
- All Implemented Interfaces:
- Closeable, DataInput
public class FSDataInputStream
- extends DataInputStream
Utility that wraps a FSInputStream
in a DataInputStream
and buffers input through a BufferedInputStream
.
Method Summary |
long |
getPos()
|
void |
seek(long desired)
|
Methods inherited from class java.io.DataInputStream |
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FSDataInputStream
public FSDataInputStream(FileSystem fs,
Path file,
int bufferSize,
Configuration conf)
throws IOException
- Throws:
IOException
FSDataInputStream
public FSDataInputStream(FileSystem fs,
Path file,
Configuration conf)
throws IOException
- Throws:
IOException
FSDataInputStream
public FSDataInputStream(FSInputStream in,
Configuration conf)
throws IOException
- Construct without checksums.
- Throws:
IOException
FSDataInputStream
public FSDataInputStream(FSInputStream in,
int bufferSize)
throws IOException
- Construct without checksums.
- Throws:
IOException
seek
public void seek(long desired)
throws IOException
- Throws:
IOException
getPos
public long getPos()
throws IOException
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation