org.apache.pig.impl.io
Class BufferedPositionedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.pig.impl.io.BufferedPositionedInputStream
All Implemented Interfaces:
Closeable

public class BufferedPositionedInputStream
extends InputStream


Constructor Summary
BufferedPositionedInputStream(InputStream in)
           
BufferedPositionedInputStream(InputStream in, long pos)
           
 
Method Summary
 void close()
           
 long getPosition()
          Returns the current position in the tracked InputStream.
 int read()
           
 int read(byte[] b, int off, int len)
           
 String readLine(Charset charset, byte delimiter)
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedPositionedInputStream

public BufferedPositionedInputStream(InputStream in,
                                     long pos)

BufferedPositionedInputStream

public BufferedPositionedInputStream(InputStream in)
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class InputStream
Throws:
IOException

getPosition

public long getPosition()
                 throws IOException
Returns the current position in the tracked InputStream.

Throws:
IOException

readLine

public String readLine(Charset charset,
                       byte delimiter)
                throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException


Copyright © ${year} The Apache Software Foundation