public final class BlockIo extends Object implements Externalizable
DataInput
,
DataOutput
,
Serialized FormModifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
BlockIo()
Default constructor for serialization
|
Modifier and Type | Method and Description |
---|---|
BlockView |
getView() |
byte |
readByte(int pos)
Reads a byte from the indicated position
|
void |
readExternal(ObjectInput in) |
int |
readInt(int pos)
Reads an int from the indicated position
|
long |
readLong(int pos)
Reads a long from the indicated position
|
short |
readShort(int pos)
Reads a short from the indicated position
|
void |
setView(BlockView view)
Sets the current view of the block.
|
String |
toString() |
void |
writeByte(int pos,
byte value)
Writes a byte to the indicated position
|
void |
writeExternal(ObjectOutput out) |
void |
writeInt(int pos,
int value)
Writes an int to the indicated position
|
void |
writeLong(int pos,
long value)
Writes a long to the indicated position
|
void |
writeShort(int pos,
short value)
Writes a short to the indicated position
|
public static final long serialVersionUID
public BlockView getView()
public void setView(BlockView view)
public byte readByte(int pos)
public void writeByte(int pos, byte value)
public short readShort(int pos)
public void writeShort(int pos, short value)
public int readInt(int pos)
public void writeInt(int pos, int value)
public long readLong(int pos)
public void writeLong(int pos, long value)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright © 2016. All rights reserved.