edu.sc.seis.seisFile.mseed
Class Blockette1000

java.lang.Object
  extended by edu.sc.seis.seisFile.mseed.Blockette
      extended by edu.sc.seis.seisFile.mseed.DataBlockette
          extended by 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
static int B1000_SIZE
           
 
Fields inherited from class edu.sc.seis.seisFile.mseed.DataBlockette
info, swapBytes
 
Constructor Summary
Blockette1000()
           
Blockette1000(byte[] info, boolean swapBytes)
           
 
Method Summary
 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
toBytes, toBytes, trimToSize, write
 
Methods inherited from class edu.sc.seis.seisFile.mseed.Blockette
parseBlockette, writeASCII
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

B1000_SIZE

public static final int B1000_SIZE
See Also:
Constant Field Values
Constructor Detail

Blockette1000

public Blockette1000()

Blockette1000

public Blockette1000(byte[] info,
                     boolean swapBytes)
Method Detail

getSize

public int getSize()
Specified by:
getSize in class Blockette

getType

public int getType()
Specified by:
getType in class Blockette

getName

public java.lang.String getName()
Specified by:
getName in class Blockette

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 interface RecordLengthBlockette

getLogicalRecordLength

public int getLogicalRecordLength()
Specified by:
getLogicalRecordLength in interface RecordLengthBlockette

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)
                throws java.io.IOException
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 class Blockette
Parameters:
out - a Writer
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class Blockette