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 TypeMethodDescriptionvoid
force()
byte
get()
byte
get
(long pos) char
getChar()
char
getChar
(long pos) double
double
getDouble
(long pos) float
getFloat()
float
getFloat
(long pos) int
getInt()
int
getInt
(long pos) long
getLong()
long
getLong
(long pos) short
getShort()
short
getShort
(long pos) long
position()
void
position
(long pos) void
put
(byte val) void
put
(long pos, byte b) void
putChar
(char val) void
putChar
(long pos, char c) void
putDouble
(double val) void
putDouble
(long pos, double d) void
putFloat
(float val) void
putFloat
(long pos, float f) void
putInt
(int val) void
putInt
(long pos, int i) void
putLong
(long val) void
putLong
(long pos, long l) void
putShort
(long pos, short s) void
putShort
(short val)
-
Constructor Details
-
LargeBuffer
public LargeBuffer(FileChannel channel, FileChannel.MapMode mode, long pos, long size) throws IOException - Throws:
IOException
-
-
Method Details
-
get
- Throws:
IndexOutOfBoundsException
IOException
-
get
- Throws:
IndexOutOfBoundsException
IOException
-
put
- Throws:
IndexOutOfBoundsException
IOException
-
put
- Throws:
IndexOutOfBoundsException
IOException
-
getChar
- Throws:
IndexOutOfBoundsException
IOException
-
getChar
- Throws:
IndexOutOfBoundsException
IOException
-
putChar
- Throws:
IndexOutOfBoundsException
IOException
-
putChar
- Throws:
IndexOutOfBoundsException
IOException
-
getDouble
- Throws:
IndexOutOfBoundsException
IOException
-
getDouble
- Throws:
IndexOutOfBoundsException
IOException
-
putDouble
- Throws:
IndexOutOfBoundsException
IOException
-
putDouble
- Throws:
IndexOutOfBoundsException
IOException
-
getFloat
- Throws:
IndexOutOfBoundsException
IOException
-
getFloat
- Throws:
IndexOutOfBoundsException
IOException
-
putFloat
- Throws:
IndexOutOfBoundsException
IOException
-
putFloat
- Throws:
IndexOutOfBoundsException
IOException
-
getInt
- Throws:
IndexOutOfBoundsException
IOException
-
getInt
- Throws:
IndexOutOfBoundsException
IOException
-
putInt
- Throws:
IndexOutOfBoundsException
IOException
-
putInt
- Throws:
IndexOutOfBoundsException
IOException
-
getLong
- Throws:
IndexOutOfBoundsException
IOException
-
getLong
- Throws:
IndexOutOfBoundsException
IOException
-
putLong
- Throws:
IndexOutOfBoundsException
IOException
-
putLong
- Throws:
IndexOutOfBoundsException
IOException
-
getShort
- Throws:
IndexOutOfBoundsException
IOException
-
getShort
- Throws:
IndexOutOfBoundsException
IOException
-
putShort
- Throws:
IndexOutOfBoundsException
IOException
-
putShort
- Throws:
IndexOutOfBoundsException
IOException
-
position
-
position
-
force
-