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:
Serializable
- Direct Known Subclasses:
Blockette100
,Blockette1000
,Blockette1001
,Blockette200
,Blockette2000
,DataBlocketteUnknown
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkMinimumSize
(int size) For use by subclasses that want to ensure that they are of a given size.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
(DataOutputStream dos, short nextOffset) Methods inherited from class edu.sc.seis.seisFile.mseed.Blockette
getName, getSize, getType, toString, writeASCII, writeASCII
-
Field Details
-
info
protected byte[] info -
swapBytes
protected boolean swapBytes
-
-
Constructor Details
-
DataBlockette
public DataBlockette(byte[] info, boolean swapBytes) -
DataBlockette
public DataBlockette(int size)
-
-
Method Details
-
checkMinimumSize
For 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
For 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
- Throws:
IOException
-
toBytes
public byte[] toBytes(short nextOffset) -
toBytes
public byte[] toBytes()
-