Save This Page
Home » hadoop-0.14.4 » org.apache » hadoop » fs » [javadoc | source]
org.apache.hadoop.fs
public class: FSDataInputStream [javadoc | source]
java.lang.Object
   java.io.InputStream
      java.io.FilterInputStream
         java.io.DataInputStream
            org.apache.hadoop.fs.FSDataInputStream

All Implemented Interfaces:
    Seekable, PositionedReadable, DataInput, Closeable

Direct Known Subclasses:
    DFSDataInputStream

Utility that wraps a FSInputStream in a DataInputStream and buffers input through a BufferedInputStream .
Constructor:
 public FSDataInputStream(InputStream in) throws IOException 
Method from org.apache.hadoop.fs.FSDataInputStream Summary:
getPos,   read,   readFully,   readFully,   seek,   seekToNewSource
Methods from java.io.DataInputStream:
read,   read,   readBoolean,   readByte,   readChar,   readDouble,   readFloat,   readFully,   readFully,   readInt,   readLine,   readLong,   readShort,   readUTF,   readUTF,   readUnsignedByte,   readUnsignedShort,   skipBytes
Methods from java.io.FilterInputStream:
available,   close,   mark,   markSupported,   read,   read,   read,   reset,   skip
Methods from java.io.InputStream:
available,   close,   mark,   markSupported,   read,   read,   read,   reset,   skip
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.hadoop.fs.FSDataInputStream Detail:
 public long getPos() throws IOException 
 public int read(long position,
    byte[] buffer,
    int offset,
    int length) throws IOException 
 public  void readFully(long position,
    byte[] buffer) throws IOException 
 public  void readFully(long position,
    byte[] buffer,
    int offset,
    int length) throws IOException 
 public synchronized  void seek(long desired) throws IOException 
 public boolean seekToNewSource(long targetPos) throws IOException