Package edu.sc.seis.seisFile.mseed
Class ControlHeader
java.lang.Object
edu.sc.seis.seisFile.mseed.ControlHeader
- Direct Known Subclasses:
DataHeader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected int
protected byte
-
Constructor Summary
ConstructorsConstructorDescriptionControlHeader
(int sequenceNum, byte typeCode, boolean continuationCode) ControlHeader
(int sequenceNum, char typeCode, boolean continuationCode) -
Method Summary
Modifier and TypeMethodDescriptionint
short
getSize()
char
boolean
static void
static ControlHeader
static void
toString()
protected void
write
(DataOutput dos) This method writes Control Header into the output stream While writing, it will conform to the format of MiniSeedvoid
writeASCII
(PrintWriter out) Writes an ASCII version of the record header.void
writeASCII
(PrintWriter out, String indent)
-
Field Details
-
sequenceNum
protected int sequenceNum -
typeCode
protected byte typeCode -
continuationCode
protected boolean continuationCode
-
-
Constructor Details
-
ControlHeader
public ControlHeader(int sequenceNum, byte typeCode, boolean continuationCode) -
ControlHeader
public ControlHeader(int sequenceNum, char typeCode, boolean continuationCode)
-
-
Method Details
-
read
- Throws:
IOException
SeedFormatException
-
write
This method writes Control Header into the output stream While writing, it will conform to the format of MiniSeed- Throws:
IOException
-
writeASCII
Writes an ASCII version of the record header. This is not meant to be a definitive ascii representation, merely to give something to print for debugging purposes. Ideally each field of the header should be printed in the order is appears in the header in a visually appealing way.- Parameters:
out
- a Writer- Throws:
IOException
-
writeASCII
- Throws:
IOException
-
getSize
public short getSize() -
getSequenceNum
public int getSequenceNum() -
getTypeCode
public char getTypeCode() -
isContinuation
public boolean isContinuation() -
toString
-
tester
-
main
-