Package edu.sc.seis.seisFile.mseed
Class Blockette2000
java.lang.Object
edu.sc.seis.seisFile.mseed.Blockette
edu.sc.seis.seisFile.mseed.DataBlockette
edu.sc.seis.seisFile.mseed.Blockette2000
- All Implemented Interfaces:
java.io.Serializable
public class Blockette2000 extends DataBlockette
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class edu.sc.seis.seisFile.mseed.DataBlockette
info, swapBytes -
Constructor Summary
Constructors Constructor Description Blockette2000(byte[] info, boolean swapBytes)Blockette2000(java.lang.String[] headerFields, byte[] opaqueData) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetHeaderField(int i)java.lang.StringgetName()intgetNumHeaders()byte[]getOpaqueData()intgetSize()intgetType()voidwriteASCII(java.io.PrintWriter out)Writes an ASCII version of the blockette.Methods inherited from class edu.sc.seis.seisFile.mseed.DataBlockette
checkMinimumSize, toBytes, toBytes, trimToSize, writeMethods inherited from class edu.sc.seis.seisFile.mseed.Blockette
toString, writeASCIIMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Blockette2000
public Blockette2000(java.lang.String[] headerFields, byte[] opaqueData) -
Blockette2000
- Throws:
SeedFormatException
-
-
Method Details
-
getName
public java.lang.String getName() -
getSize
public int getSize() -
getType
public int getType() -
getHeaderField
public java.lang.String getHeaderField(int i) -
getNumHeaders
public int getNumHeaders() -
getOpaqueData
public byte[] getOpaqueData() -
writeASCII
public void writeASCII(java.io.PrintWriter out)Description copied from class:BlocketteWrites an ASCII version of the blockette. This is not meant to be a definitive ascii representation, merely to give something to print for debugging purposes. Ideally each field of each blockette should be printed in the order they appear in the blockette in a visually appealing way.- Specified by:
writeASCIIin classBlockette- Parameters:
out- a Writer
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-