public abstract class CDataFileRWAccess extends CDataReadWriteAccess
Modifier and Type | Field and Description |
---|---|
protected java.io.RandomAccessFile |
io |
Modifier | Constructor and Description |
---|---|
protected |
CDataFileRWAccess(java.io.RandomAccessFile in,
int pointerSize) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
long |
offset() |
void |
offset(long offset) |
void |
padding(int alignment)
Same as
CDataReadWriteAccess.padding(int, boolean) with 'extend == false'. |
void |
padding(int alignment,
boolean extend)
Inserts padding at a given offset to fit a given alignment during reading or
writing in streams.
|
boolean |
readBoolean() |
byte |
readByte() |
void |
readFully(byte[] b,
int off,
int len) |
long |
skip(long n) |
void |
writeBoolean(boolean value) |
void |
writeByte(int value) |
void |
writeFully(byte[] b,
int off,
int len) |
create, create, getByteOrder, getPointerSize, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFullyInt64, readInt, readInt64, readLong, readShort, writeDouble, writeFloat, writeFully, writeFully, writeFully, writeFully, writeFully, writeFully, writeFullyInt64, writeInt, writeInt64, writeLong, writeShort
protected CDataFileRWAccess(java.io.RandomAccessFile in, int pointerSize)
public final long skip(long n) throws java.io.IOException
skip
in class CDataReadWriteAccess
java.io.IOException
public final int available() throws java.io.IOException
available
in class CDataReadWriteAccess
java.io.IOException
public final void readFully(byte[] b, int off, int len) throws java.io.IOException
readFully
in class CDataReadWriteAccess
java.io.IOException
public final void writeFully(byte[] b, int off, int len) throws java.io.IOException
writeFully
in class CDataReadWriteAccess
java.io.IOException
public final boolean readBoolean() throws java.io.IOException
readBoolean
in class CDataReadWriteAccess
java.io.IOException
public final void writeBoolean(boolean value) throws java.io.IOException
writeBoolean
in class CDataReadWriteAccess
java.io.IOException
public final byte readByte() throws java.io.IOException
readByte
in class CDataReadWriteAccess
java.io.IOException
public final void writeByte(int value) throws java.io.IOException
writeByte
in class CDataReadWriteAccess
java.io.IOException
public final void offset(long offset) throws java.io.IOException
offset
in class CDataReadWriteAccess
java.io.IOException
public long offset() throws java.io.IOException
offset
in class CDataReadWriteAccess
java.io.IOException
public void padding(int alignment) throws java.io.IOException
CDataReadWriteAccess
CDataReadWriteAccess.padding(int, boolean)
with 'extend == false'.padding
in class CDataReadWriteAccess
alignment
- Requrested aligmentjava.io.IOException
public void padding(int alignment, boolean extend) throws java.io.IOException
CDataReadWriteAccess
padding
in class CDataReadWriteAccess
alignment
- Requrested aligmentextend
- Extend past boundary (write mode)java.io.IOException
public void close() throws java.io.IOException
java.io.IOException