Package edu.sc.seis.seisFile.mseed
Class DataBlockette
- java.lang.Object
-
- edu.sc.seis.seisFile.mseed.Blockette
-
- edu.sc.seis.seisFile.mseed.DataBlockette
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
Blockette100,Blockette1000,Blockette1001,Blockette200,Blockette2000,DataBlocketteUnknown
public abstract class DataBlockette extends Blockette implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataBlockette(byte[] info, boolean swapBytes)DataBlockette(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckMinimumSize(int size)For use by subclasses that want to ensure that they are of a given size.byte[]toBytes()byte[]toBytes(short nextOffset)protected voidtrimToSize(int size)For use by subclasses that want to ensure that they are of a given size.voidwrite(java.io.DataOutputStream dos, short nextOffset)-
Methods inherited from class edu.sc.seis.seisFile.mseed.Blockette
getName, getSize, getType, toString, writeASCII, writeASCII
-
-
-
-
Method Detail
-
checkMinimumSize
protected void checkMinimumSize(int size) throws SeedFormatExceptionFor use by subclasses that want to ensure that they are of a given size.- Throws:
SeedFormatException- if the size is larger than the number of bytes
-
trimToSize
protected void trimToSize(int size) throws SeedFormatExceptionFor use by subclasses that want to ensure that they are of a given size.- Throws:
SeedFormatException- if the size is larger than the number of bytes
-
write
public void write(java.io.DataOutputStream dos, short nextOffset) throws java.io.IOException- Throws:
java.io.IOException
-
toBytes
public byte[] toBytes(short nextOffset)
-
-