Package net.sansa_stack.hadoop.util
Class SeekablePushbackInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.PushbackInputStream
net.sansa_stack.hadoop.util.SeekablePushbackInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,SeekableDecorator,org.apache.hadoop.fs.Seekable
-
Field Summary
FieldsFields inherited from class java.io.PushbackInputStream
buf, posFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionSeekablePushbackInputStream(InputStream in, int size) SeekablePushbackInputStream(InputStream in, org.apache.hadoop.fs.Seekable seekable, int size) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidorg.apache.hadoop.fs.Seekablevoidseek(long l) booleanseekToNewSource(long l) Methods inherited from class java.io.PushbackInputStream
available, close, mark, markSupported, read, read, reset, skip, unread, unread, unreadMethods inherited from class java.io.FilterInputStream
readMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sansa_stack.hadoop.util.SeekableDecorator
getPos
-
Field Details
-
seekable
protected org.apache.hadoop.fs.Seekable seekable
-
-
Constructor Details
-
SeekablePushbackInputStream
-
SeekablePushbackInputStream
public SeekablePushbackInputStream(InputStream in, org.apache.hadoop.fs.Seekable seekable, int size)
-
-
Method Details
-
getSeekable
public org.apache.hadoop.fs.Seekable getSeekable()- Specified by:
getSeekablein interfaceSeekableDecorator
-
afterSeek
protected void afterSeek() -
seek
- Specified by:
seekin interfaceorg.apache.hadoop.fs.Seekable- Specified by:
seekin interfaceSeekableDecorator- Throws:
IOException
-
seekToNewSource
- Specified by:
seekToNewSourcein interfaceorg.apache.hadoop.fs.Seekable- Specified by:
seekToNewSourcein interfaceSeekableDecorator- Throws:
IOException
-