edu.sc.seis.seisFile.mseed
Class ControlRecord

java.lang.Object
  extended by edu.sc.seis.seisFile.mseed.SeedRecord
      extended by edu.sc.seis.seisFile.mseed.ControlRecord
Direct Known Subclasses:
ContinuedControlRecord

public class ControlRecord
extends SeedRecord


Field Summary
static java.lang.String THREESPACE
           
 
Fields inherited from class edu.sc.seis.seisFile.mseed.SeedRecord
blocketteFactory, blockettes, header, RECORD_SIZE
 
Constructor Summary
ControlRecord(ControlHeader header)
           
 
Method Summary
static ControlRecord readControlRecord(java.io.DataInput inStream, ControlHeader header, int defaultRecordSize)
          Reads the next control record from the stream.
static ControlRecord readSingleControlRecord(java.io.DataInput inStream, ControlHeader header, int defaultRecordSize, PartialBlockette partialBlockette)
           
 void setRecordSize(int recordSize)
           
 
Methods inherited from class edu.sc.seis.seisFile.mseed.SeedRecord
addBlockette, getBlocketteFactory, getBlockettes, getBlockettes, getControlHeader, getFirstPartialBlockette, getLastPartialBlockette, getNumBlockettes, getRecordSize, getUniqueBlockette, read, read, read, setBlocketteFactory, toString, writeASCII, writeASCII
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

THREESPACE

public static final java.lang.String THREESPACE
See Also:
Constant Field Values
Constructor Detail

ControlRecord

public ControlRecord(ControlHeader header)
Method Detail

readControlRecord

public static ControlRecord readControlRecord(java.io.DataInput inStream,
                                              ControlHeader header,
                                              int defaultRecordSize)
                                       throws java.io.IOException,
                                              SeedFormatException
Reads the next control record from the stream. If the record continues, ie a blockette is too big to fit in the record, then the following record will be read recursively and combined with the current.

Parameters:
inStream -
header -
defaultRecordSize -
Returns:
Throws:
java.io.IOException
SeedFormatException

readSingleControlRecord

public static ControlRecord readSingleControlRecord(java.io.DataInput inStream,
                                                    ControlHeader header,
                                                    int defaultRecordSize,
                                                    PartialBlockette partialBlockette)
                                             throws java.io.IOException,
                                                    SeedFormatException
Throws:
java.io.IOException
SeedFormatException

setRecordSize

public void setRecordSize(int recordSize)
                   throws SeedFormatException
Throws:
SeedFormatException