Package org.biojava.utils.io
Class LargeBuffer
java.lang.Object
org.biojava.utils.io.LargeBuffer
Wrapper arround MappedByteBuffers to allow long-indexed access to files
larger than 2 gigs.
- Author:
- Matthews Pocock
-
Constructor Summary
ConstructorsConstructorDescriptionLargeBuffer(FileChannel channel, FileChannel.MapMode mode, long pos, long size) -
Method Summary
Modifier and TypeMethodDescriptionvoidforce()byteget()byteget(long pos) chargetChar()chargetChar(long pos) doubledoublegetDouble(long pos) floatgetFloat()floatgetFloat(long pos) intgetInt()intgetInt(long pos) longgetLong()longgetLong(long pos) shortgetShort()shortgetShort(long pos) longposition()voidposition(long pos) voidput(byte val) voidput(long pos, byte b) voidputChar(char val) voidputChar(long pos, char c) voidputDouble(double val) voidputDouble(long pos, double d) voidputFloat(float val) voidputFloat(long pos, float f) voidputInt(int val) voidputInt(long pos, int i) voidputLong(long val) voidputLong(long pos, long l) voidputShort(long pos, short s) voidputShort(short val)
-
Constructor Details
-
LargeBuffer
public LargeBuffer(FileChannel channel, FileChannel.MapMode mode, long pos, long size) throws IOException - Throws:
IOException
-
-
Method Details
-
get
- Throws:
IndexOutOfBoundsExceptionIOException
-
get
- Throws:
IndexOutOfBoundsExceptionIOException
-
put
- Throws:
IndexOutOfBoundsExceptionIOException
-
put
- Throws:
IndexOutOfBoundsExceptionIOException
-
getChar
- Throws:
IndexOutOfBoundsExceptionIOException
-
getChar
- Throws:
IndexOutOfBoundsExceptionIOException
-
putChar
- Throws:
IndexOutOfBoundsExceptionIOException
-
putChar
- Throws:
IndexOutOfBoundsExceptionIOException
-
getDouble
- Throws:
IndexOutOfBoundsExceptionIOException
-
getDouble
- Throws:
IndexOutOfBoundsExceptionIOException
-
putDouble
- Throws:
IndexOutOfBoundsExceptionIOException
-
putDouble
- Throws:
IndexOutOfBoundsExceptionIOException
-
getFloat
- Throws:
IndexOutOfBoundsExceptionIOException
-
getFloat
- Throws:
IndexOutOfBoundsExceptionIOException
-
putFloat
- Throws:
IndexOutOfBoundsExceptionIOException
-
putFloat
- Throws:
IndexOutOfBoundsExceptionIOException
-
getInt
- Throws:
IndexOutOfBoundsExceptionIOException
-
getInt
- Throws:
IndexOutOfBoundsExceptionIOException
-
putInt
- Throws:
IndexOutOfBoundsExceptionIOException
-
putInt
- Throws:
IndexOutOfBoundsExceptionIOException
-
getLong
- Throws:
IndexOutOfBoundsExceptionIOException
-
getLong
- Throws:
IndexOutOfBoundsExceptionIOException
-
putLong
- Throws:
IndexOutOfBoundsExceptionIOException
-
putLong
- Throws:
IndexOutOfBoundsExceptionIOException
-
getShort
- Throws:
IndexOutOfBoundsExceptionIOException
-
getShort
- Throws:
IndexOutOfBoundsExceptionIOException
-
putShort
- Throws:
IndexOutOfBoundsExceptionIOException
-
putShort
- Throws:
IndexOutOfBoundsExceptionIOException
-
position
-
position
-
force
-