public class Block
extends java.lang.Object
implements java.lang.Comparable<java.lang.Long>
BlenderFile
.Modifier and Type | Field and Description |
---|---|
CDataReadWriteAccess |
data
raw data in a byte order aware buffer.
|
BlockHeader |
header
the header as read from the file
|
Constructor and Description |
---|
Block(BlockHeader header,
CDataReadWriteAccess data) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
compareTo(java.lang.Long address) |
boolean |
contains(long address) |
void |
flush(CDataReadWriteAccess io) |
java.nio.ByteOrder |
getByteOrder() |
boolean |
readBoolean(long address) |
byte |
readByte(long address) |
double |
readDouble(long address) |
float |
readFloat(long address) |
void |
readFully(long address,
byte[] b) |
void |
readFully(long address,
byte[] b,
int off,
int len) |
void |
readFully(long address,
double[] b,
int off,
int len) |
void |
readFully(long address,
float[] b,
int off,
int len) |
void |
readFully(long address,
int[] b,
int off,
int len) |
void |
readFully(long address,
long[] b,
int off,
int len) |
void |
readFully(long address,
short[] b,
int off,
int len) |
void |
readFullyInt64(long address,
long[] b,
int off,
int len) |
int |
readInt(long address) |
long |
readInt64(long address) |
long |
readLong(long address) |
short |
readShort(long address) |
void |
writeBoolean(long address,
boolean value) |
void |
writeByte(long address,
byte value) |
void |
writeDouble(long address,
double value) |
void |
writeFloat(long address,
float value) |
void |
writeFully(long address,
byte[] b) |
void |
writeFully(long address,
byte[] b,
int off,
int len) |
void |
writeFully(long address,
double[] b,
int off,
int len) |
void |
writeFully(long address,
float[] b,
int off,
int len) |
void |
writeFully(long address,
int[] b,
int off,
int len) |
void |
writeFully(long address,
long[] b,
int off,
int len) |
void |
writeFully(long address,
short[] b,
int off,
int len) |
void |
writeFullyInt64(long address,
long[] b,
int off,
int len) |
void |
writeInt(long address,
int value) |
void |
writeInt64(long address,
long value) |
void |
writeLong(long address,
long value) |
void |
writeShort(long address,
short value) |
public BlockHeader header
public CDataReadWriteAccess data
public Block(BlockHeader header, CDataReadWriteAccess data)
public int compareTo(java.lang.Long address)
compareTo
in interface java.lang.Comparable<java.lang.Long>
public void close() throws java.io.IOException
java.io.IOException
public boolean readBoolean(long address) throws java.io.IOException
java.io.IOException
public void writeBoolean(long address, boolean value) throws java.io.IOException
java.io.IOException
public byte readByte(long address) throws java.io.IOException
java.io.IOException
public void writeByte(long address, byte value) throws java.io.IOException
java.io.IOException
public short readShort(long address) throws java.io.IOException
java.io.IOException
public void writeShort(long address, short value) throws java.io.IOException
java.io.IOException
public int readInt(long address) throws java.io.IOException
java.io.IOException
public void writeInt(long address, int value) throws java.io.IOException
java.io.IOException
public long readLong(long address) throws java.io.IOException
java.io.IOException
public void writeLong(long address, long value) throws java.io.IOException
java.io.IOException
public long readInt64(long address) throws java.io.IOException
java.io.IOException
public void writeInt64(long address, long value) throws java.io.IOException
java.io.IOException
public float readFloat(long address) throws java.io.IOException
java.io.IOException
public void writeFloat(long address, float value) throws java.io.IOException
java.io.IOException
public double readDouble(long address) throws java.io.IOException
java.io.IOException
public void writeDouble(long address, double value) throws java.io.IOException
java.io.IOException
public void readFully(long address, byte[] b) throws java.io.IOException
java.io.IOException
public void writeFully(long address, byte[] b) throws java.io.IOException
java.io.IOException
public void readFully(long address, byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void writeFully(long address, byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
public boolean contains(long address)
public void readFully(long address, short[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void writeFully(long address, short[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void readFully(long address, int[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void writeFully(long address, int[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void readFully(long address, long[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void writeFully(long address, long[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void readFullyInt64(long address, long[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void writeFullyInt64(long address, long[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void readFully(long address, float[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void writeFully(long address, float[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void readFully(long address, double[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void writeFully(long address, double[] b, int off, int len) throws java.io.IOException
java.io.IOException
public java.nio.ByteOrder getByteOrder()
public void flush(CDataReadWriteAccess io) throws java.io.IOException
java.io.IOException