Package edu.sc.seis.seisFile.mseed
Class ControlHeader
- java.lang.Object
-
- edu.sc.seis.seisFile.mseed.ControlHeader
-
- Direct Known Subclasses:
DataHeader
public class ControlHeader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancontinuationCodeprotected intsequenceNumprotected bytetypeCode
-
Constructor Summary
Constructors Constructor Description ControlHeader(int sequenceNum, byte typeCode, boolean continuationCode)ControlHeader(int sequenceNum, char typeCode, boolean continuationCode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSequenceNum()shortgetSize()chargetTypeCode()booleanisContinuation()static voidmain(java.lang.String[] args)static ControlHeaderread(java.io.DataInput in)static voidtester(java.lang.String fileName)java.lang.StringtoString()protected voidwrite(java.io.DataOutput dos)This method writes Control Header into the output stream While writing, it will conform to the format of MiniSeedvoidwriteASCII(java.io.PrintWriter out)Writes an ASCII version of the record header.voidwriteASCII(java.io.PrintWriter out, java.lang.String indent)
-
-
-
Method Detail
-
read
public static ControlHeader read(java.io.DataInput in) throws java.io.IOException, SeedFormatException
- Throws:
java.io.IOExceptionSeedFormatException
-
write
protected void write(java.io.DataOutput dos) throws java.io.IOExceptionThis method writes Control Header into the output stream While writing, it will conform to the format of MiniSeed- Throws:
java.io.IOException
-
writeASCII
public void writeASCII(java.io.PrintWriter out) throws java.io.IOExceptionWrites 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:
java.io.IOException
-
writeASCII
public void writeASCII(java.io.PrintWriter out, java.lang.String indent) throws java.io.IOException- Throws:
java.io.IOException
-
getSize
public short getSize()
-
getSequenceNum
public int getSequenceNum()
-
getTypeCode
public char getTypeCode()
-
isContinuation
public boolean isContinuation()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
tester
public static void tester(java.lang.String fileName)
-
main
public static void main(java.lang.String[] args)
-
-