Class BufferedFileInput
- java.lang.Object
-
- org.apache.hugegraph.computer.core.io.UnsafeBytesInput
-
- org.apache.hugegraph.computer.core.io.AbstractBufferedFileInput
-
- org.apache.hugegraph.computer.core.io.BufferedFileInput
-
- All Implemented Interfaces:
java.io.Closeable,java.io.DataInput,java.lang.AutoCloseable,org.apache.hugegraph.computer.core.io.BytesInput,org.apache.hugegraph.computer.core.io.RandomAccessInput
public class BufferedFileInput extends AbstractBufferedFileInput
-
-
Field Summary
-
Fields inherited from class org.apache.hugegraph.computer.core.io.AbstractBufferedFileInput
fileOffset
-
-
Constructor Summary
Constructors Constructor Description BufferedFileInput(java.io.File file)BufferedFileInput(java.io.RandomAccessFile file, int bufferCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()BufferedFileInputduplicate()protected voidfillBuffer()voidreadFully(byte[] b, int off, int len)voidseek(long position)-
Methods inherited from class org.apache.hugegraph.computer.core.io.AbstractBufferedFileInput
available, bufferCapacity, compare, fileLength, position, readFully, require, shiftAndFillBuffer, skip
-
Methods inherited from class org.apache.hugegraph.computer.core.io.UnsafeBytesInput
buffer, limit, limit, readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, remaining, shiftBuffer, skipBytes
-
-
-
-
Method Detail
-
readFully
public void readFully(byte[] b, int off, int len) throws java.io.IOException- Specified by:
readFullyin interfacejava.io.DataInput- Overrides:
readFullyin classUnsafeBytesInput- Throws:
java.io.IOException
-
seek
public void seek(long position) throws java.io.IOException- Specified by:
seekin interfaceorg.apache.hugegraph.computer.core.io.RandomAccessInput- Overrides:
seekin classUnsafeBytesInput- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classUnsafeBytesInput- Throws:
java.io.IOException
-
fillBuffer
protected void fillBuffer() throws java.io.IOException- Specified by:
fillBufferin classAbstractBufferedFileInput- Throws:
java.io.IOException
-
duplicate
public BufferedFileInput duplicate() throws java.io.IOException
- Specified by:
duplicatein interfaceorg.apache.hugegraph.computer.core.io.RandomAccessInput- Overrides:
duplicatein classUnsafeBytesInput- Throws:
java.io.IOException
-
-