Package net.sansa_stack.hadoop.util
Class SeekableByteChannelFromSeekableInputStream
java.lang.Object
org.aksw.commons.io.util.channel.ReadableByteChannelFromInputStream
net.sansa_stack.hadoop.util.SeekableByteChannelFromSeekableInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,ByteChannel,Channel,ReadableByteChannel,SeekableByteChannel,WritableByteChannel
public class SeekableByteChannelFromSeekableInputStream
extends org.aksw.commons.io.util.channel.ReadableByteChannelFromInputStream
implements SeekableByteChannel
-
Field Summary
FieldsFields inherited from class org.aksw.commons.io.util.channel.ReadableByteChannelFromInputStream
buf, in, open -
Constructor Summary
ConstructorsConstructorDescriptionSeekableByteChannelFromSeekableInputStream(InputStream in, org.apache.hadoop.fs.Seekable seekable) -
Method Summary
Methods inherited from class org.aksw.commons.io.util.channel.ReadableByteChannelFromInputStream
close, readMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.nio.channels.SeekableByteChannel
read
-
Field Details
-
seekable
protected org.apache.hadoop.fs.Seekable seekable
-
-
Constructor Details
-
SeekableByteChannelFromSeekableInputStream
-
SeekableByteChannelFromSeekableInputStream
public SeekableByteChannelFromSeekableInputStream(InputStream in, org.apache.hadoop.fs.Seekable seekable)
-
-
Method Details
-
write
- Specified by:
writein interfaceSeekableByteChannel- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
position
- Specified by:
positionin interfaceSeekableByteChannel- Throws:
IOException
-
position
- Specified by:
positionin interfaceSeekableByteChannel- Throws:
IOException
-
size
- Specified by:
sizein interfaceSeekableByteChannel- Throws:
IOException
-
truncate
- Specified by:
truncatein interfaceSeekableByteChannel- Throws:
IOException
-
isOpen
public boolean isOpen()
-