Package edu.sc.seis.seisFile.mseed
Class Blockette1000
- java.lang.Object
-
- edu.sc.seis.seisFile.mseed.Blockette
-
- edu.sc.seis.seisFile.mseed.DataBlockette
-
- edu.sc.seis.seisFile.mseed.Blockette1000
-
- All Implemented Interfaces:
RecordLengthBlockette,java.io.Serializable
public class Blockette1000 extends DataBlockette implements RecordLengthBlockette
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intB1000_SIZEstatic byteSEED_BIG_ENDIANstatic byteSEED_LITTLE_ENDIAN-
Fields inherited from class edu.sc.seis.seisFile.mseed.DataBlockette
info, swapBytes
-
-
Constructor Summary
Constructors Constructor Description Blockette1000()Blockette1000(byte[] info, boolean swapBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDataRecordLength()Get the value of dataRecordLengthByte.bytegetDataRecordLengthByte()Get the value of dataRecordLengthByte.bytegetEncodingFormat()Get the value of encodingFormat.intgetLogicalRecordLength()intgetLogicalRecordLengthByte()java.lang.StringgetName()bytegetReserved()Get the value of reserved.intgetSize()intgetType()bytegetWordOrder()Get the value of wordOrder.booleanisBigEndian()booleanisLittleEndian()voidsetDataRecordLength(byte v)Set the value of dataRecordLength.voidsetEncodingFormat(byte v)Set the value of encodingFormat.voidsetReserved(byte v)Set the value of reserved.voidsetWordOrder(byte v)Set the value of wordOrder.java.lang.StringtoString()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, write
-
Methods inherited from class edu.sc.seis.seisFile.mseed.Blockette
writeASCII
-
-
-
-
Field Detail
-
B1000_SIZE
public static final int B1000_SIZE
- See Also:
- Constant Field Values
-
SEED_BIG_ENDIAN
public static final byte SEED_BIG_ENDIAN
- See Also:
- Constant Field Values
-
SEED_LITTLE_ENDIAN
public static final byte SEED_LITTLE_ENDIAN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Blockette1000
public Blockette1000()
-
Blockette1000
public Blockette1000(byte[] info, boolean swapBytes) throws SeedFormatException- Throws:
SeedFormatException
-
-
Method Detail
-
getEncodingFormat
public byte getEncodingFormat()
Get the value of encodingFormat.- Returns:
- Value of encodingFormat.
-
setEncodingFormat
public void setEncodingFormat(byte v)
Set the value of encodingFormat.- Parameters:
v- Value to assign to encodingFormat.
-
getWordOrder
public byte getWordOrder()
Get the value of wordOrder.- Returns:
- Value of wordOrder.
-
setWordOrder
public void setWordOrder(byte v)
Set the value of wordOrder.- Parameters:
v- Value to assign to wordOrder.
-
isBigEndian
public boolean isBigEndian()
-
isLittleEndian
public boolean isLittleEndian()
-
getLogicalRecordLengthByte
public int getLogicalRecordLengthByte()
- Specified by:
getLogicalRecordLengthBytein interfaceRecordLengthBlockette
-
getLogicalRecordLength
public int getLogicalRecordLength()
- Specified by:
getLogicalRecordLengthin interfaceRecordLengthBlockette
-
getDataRecordLengthByte
public byte getDataRecordLengthByte()
Get the value of dataRecordLengthByte.- Returns:
- Value of dataRecordLengthByte.
-
getDataRecordLength
public int getDataRecordLength()
Get the value of dataRecordLengthByte.- Returns:
- Value of dataRecordLengthByte.
-
setDataRecordLength
public void setDataRecordLength(byte v)
Set the value of dataRecordLength.- Parameters:
v- Value to assign to dataRecordLength.
-
getReserved
public byte getReserved()
Get the value of reserved.- Returns:
- Value of reserved.
-
setReserved
public void setReserved(byte v)
Set the value of reserved.- Parameters:
v- Value to assign to reserved.
-
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
-
-