Class ControlHeader

java.lang.Object
edu.sc.seis.seisFile.mseed.ControlHeader
Direct Known Subclasses:
DataHeader

public class ControlHeader extends Object
  • 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

      public static ControlHeader read(DataInput in) throws IOException, SeedFormatException
      Throws:
      IOException
      SeedFormatException
    • write

      protected void write(DataOutput dos) throws IOException
      This method writes Control Header into the output stream While writing, it will conform to the format of MiniSeed
      Throws:
      IOException
    • writeASCII

      public void writeASCII(PrintWriter out) throws IOException
      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

      public void writeASCII(PrintWriter out, String indent) throws IOException
      Throws:
      IOException
    • getSize

      public short getSize()
    • getSequenceNum

      public int getSequenceNum()
    • getTypeCode

      public char getTypeCode()
    • isContinuation

      public boolean isContinuation()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • tester

      public static void tester(String fileName)
    • main

      public static void main(String[] args)