public abstract class DataBlockette extends Blockette implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected byte[] |
info |
protected boolean |
swapBytes |
Constructor and Description |
---|
DataBlockette(byte[] info,
boolean swapBytes) |
DataBlockette(int size) |
Modifier and Type | Method and Description |
---|---|
byte[] |
toBytes() |
byte[] |
toBytes(short nextOffset) |
protected void |
trimToSize(int size)
For use by subclasses that want to ensure that they are of a given size.
|
void |
write(java.io.DataOutputStream dos,
short nextOffset) |
getName, getSize, getType, parseBlockette, toString, writeASCII, writeASCII
public DataBlockette(byte[] info, boolean swapBytes)
public DataBlockette(int size)
protected void trimToSize(int size) throws SeedFormatException
SeedFormatException
- if the size is larger than the number of bytespublic void write(java.io.DataOutputStream dos, short nextOffset) throws java.io.IOException
java.io.IOException
public byte[] toBytes(short nextOffset)