Package org.cakelab.blender.io.util
Class BigEndianCFileRW
- java.lang.Object
-
- org.cakelab.blender.io.util.CDataReadWriteAccess
-
- org.cakelab.blender.io.util.CDataFileRWAccess
-
- org.cakelab.blender.io.util.BigEndianCFileRW
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class BigEndianCFileRW extends CDataFileRWAccess
-
-
Field Summary
-
Fields inherited from class org.cakelab.blender.io.util.CDataFileRWAccess
io
-
-
Constructor Summary
Constructors Constructor Description BigEndianCFileRW(java.io.RandomAccessFile in, int pointerSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteOrder
getByteOrder()
long
offset()
double
readDouble()
float
readFloat()
int
readInt()
long
readInt64()
short
readShort()
void
writeDouble(double v)
void
writeFloat(float v)
void
writeInt(int v)
void
writeInt64(long value)
void
writeShort(short v)
-
Methods inherited from class org.cakelab.blender.io.util.CDataFileRWAccess
available, close, offset, padding, padding, readBoolean, readByte, readFully, skip, writeBoolean, writeByte, writeFully
-
Methods inherited from class org.cakelab.blender.io.util.CDataReadWriteAccess
create, create, getPointerSize, readFully, readFully, readFully, readFully, readFully, readFully, readFullyInt64, readLong, writeFully, writeFully, writeFully, writeFully, writeFully, writeFully, writeFullyInt64, writeLong
-
-
-
-
Method Detail
-
readShort
public short readShort() throws java.io.IOException
- Specified by:
readShort
in classCDataReadWriteAccess
- Throws:
java.io.IOException
-
writeShort
public final void writeShort(short v) throws java.io.IOException
- Specified by:
writeShort
in classCDataReadWriteAccess
- Throws:
java.io.IOException
-
readInt
public int readInt() throws java.io.IOException
- Specified by:
readInt
in classCDataReadWriteAccess
- Throws:
java.io.IOException
-
writeInt
public final void writeInt(int v) throws java.io.IOException
- Specified by:
writeInt
in classCDataReadWriteAccess
- Throws:
java.io.IOException
-
readInt64
public long readInt64() throws java.io.IOException
- Specified by:
readInt64
in classCDataReadWriteAccess
- Throws:
java.io.IOException
-
writeInt64
public void writeInt64(long value) throws java.io.IOException
- Specified by:
writeInt64
in classCDataReadWriteAccess
- Throws:
java.io.IOException
-
readFloat
public float readFloat() throws java.io.IOException
- Specified by:
readFloat
in classCDataReadWriteAccess
- Throws:
java.io.IOException
-
writeFloat
public final void writeFloat(float v) throws java.io.IOException
- Specified by:
writeFloat
in classCDataReadWriteAccess
- Throws:
java.io.IOException
-
readDouble
public double readDouble() throws java.io.IOException
- Specified by:
readDouble
in classCDataReadWriteAccess
- Throws:
java.io.IOException
-
writeDouble
public final void writeDouble(double v) throws java.io.IOException
- Specified by:
writeDouble
in classCDataReadWriteAccess
- Throws:
java.io.IOException
-
offset
public long offset() throws java.io.IOException
- Overrides:
offset
in classCDataFileRWAccess
- Throws:
java.io.IOException
-
getByteOrder
public java.nio.ByteOrder getByteOrder()
- Specified by:
getByteOrder
in classCDataReadWriteAccess
-
-