org.apache.nutch.fs
Class NFSDataInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byjava.io.DataInputStream
              extended byorg.apache.nutch.fs.NFSDataInputStream
All Implemented Interfaces:
DataInput

public class NFSDataInputStream
extends DataInputStream

Utility that wraps a NFSInputStream in a DataInputStream and buffers input through a BufferedInputStream.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
NFSDataInputStream(NFSInputStream in)
           
NFSDataInputStream(NFSInputStream in, int bufferSize)
           
 
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.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NFSDataInputStream

public NFSDataInputStream(NFSInputStream in)
                   throws IOException

NFSDataInputStream

public NFSDataInputStream(NFSInputStream in,
                          int bufferSize)
                   throws IOException
Method Detail

seek

public void seek(long desired)
          throws IOException
Throws:
IOException

getPos

public long getPos()
            throws IOException
Throws:
IOException


Copyright © 2006 The Apache Software Foundation