public interface FileDataInput
extends java.io.DataInput, java.io.Closeable
Modifier and Type | Method and Description |
---|---|
long |
bytesPastMark(FileMark mark) |
long |
bytesRemaining() |
long |
getFilePointer() |
java.lang.String |
getPath() |
boolean |
isEOF() |
FileMark |
mark() |
java.nio.ByteBuffer |
readBytes(int length)
Read length bytes from current file position
|
void |
reset(FileMark mark) |
void |
seek(long pos) |
java.lang.String getPath()
boolean isEOF() throws java.io.IOException
java.io.IOException
long bytesRemaining() throws java.io.IOException
java.io.IOException
void seek(long pos) throws java.io.IOException
java.io.IOException
FileMark mark()
void reset(FileMark mark) throws java.io.IOException
java.io.IOException
long bytesPastMark(FileMark mark)
long getFilePointer()
java.nio.ByteBuffer readBytes(int length) throws java.io.IOException
length
- length of the bytes to readjava.io.IOException
- if any I/O operation failedCopyright © 2018 The Apache Software Foundation