org.apache.pig.impl.io
Class BufferedPositionedInputStream
java.lang.Object
java.io.InputStream
org.apache.pig.impl.io.BufferedPositionedInputStream
- All Implemented Interfaces:
- Closeable
public class BufferedPositionedInputStream
- extends InputStream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferedPositionedInputStream
public BufferedPositionedInputStream(InputStream in,
long pos)
BufferedPositionedInputStream
public BufferedPositionedInputStream(InputStream in)
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 © 2012 The Apache Software Foundation