public class FileSegmentInputStream extends DataInputBuffer implements FileDataInput
DataInputPlus.DataInputStreamPlus
buffer
Constructor and Description |
---|
FileSegmentInputStream(java.nio.ByteBuffer buffer,
java.lang.String filePath,
long offset) |
Modifier and Type | Method and Description |
---|---|
long |
bytesPastMark(DataPosition mark) |
long |
bytesRemaining() |
long |
getFilePointer() |
java.lang.String |
getPath() |
boolean |
isEOF() |
DataPosition |
mark() |
boolean |
markSupported() |
void |
reset(DataPosition mark) |
void |
seek(long pos) |
available, reBuffer
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readPrimitiveSlowly, readShort, readUnsignedByte, readUnsignedShort, readUnsignedVInt, readUTF, readVInt, reset, skipBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readUnsignedVInt, readVInt, skipBytes, skipBytesFully
public FileSegmentInputStream(java.nio.ByteBuffer buffer, java.lang.String filePath, long offset)
public java.lang.String getPath()
getPath
in interface FileDataInput
public boolean isEOF()
isEOF
in interface FileDataInput
public long bytesRemaining()
bytesRemaining
in interface FileDataInput
public void seek(long pos)
seek
in interface FileDataInput
public boolean markSupported()
markSupported
in class RebufferingInputStream
public DataPosition mark()
mark
in interface RewindableDataInput
public void reset(DataPosition mark)
reset
in interface RewindableDataInput
public long bytesPastMark(DataPosition mark)
bytesPastMark
in interface RewindableDataInput
public long getFilePointer()
getFilePointer
in interface FileDataInput
Copyright © 2016 The Apache Software Foundation