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 int
B1000_SIZE
static byte
SEED_BIG_ENDIAN
static byte
SEED_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 int
getDataRecordLength()
Get the value of dataRecordLengthByte.byte
getDataRecordLengthByte()
Get the value of dataRecordLengthByte.byte
getEncodingFormat()
Get the value of encodingFormat.int
getLogicalRecordLength()
int
getLogicalRecordLengthByte()
java.lang.String
getName()
byte
getReserved()
Get the value of reserved.int
getSize()
int
getType()
byte
getWordOrder()
Get the value of wordOrder.boolean
isBigEndian()
boolean
isLittleEndian()
void
setDataRecordLength(byte v)
Set the value of dataRecordLength.void
setEncodingFormat(byte v)
Set the value of encodingFormat.void
setReserved(byte v)
Set the value of reserved.void
setWordOrder(byte v)
Set the value of wordOrder.java.lang.String
toString()
void
writeASCII(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
parseBlockette, 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:
getLogicalRecordLengthByte
in interfaceRecordLengthBlockette
-
getLogicalRecordLength
public int getLogicalRecordLength()
- Specified by:
getLogicalRecordLength
in 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:Blockette
Writes 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:
writeASCII
in classBlockette
- Parameters:
out
- a Writer
-
-