Package edu.sc.seis.seisFile.mseed
Class ControlRecord
java.lang.Object
edu.sc.seis.seisFile.mseed.SeedRecord
edu.sc.seis.seisFile.mseed.ControlRecord
- Direct Known Subclasses:
ContinuedControlRecord
public class ControlRecord extends SeedRecord
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTHREESPACEFields inherited from class edu.sc.seis.seisFile.mseed.SeedRecord
blocketteFactory, blockettes, DEFAULT_INDENT, header, RECORD_SIZE -
Constructor Summary
Constructors Constructor Description ControlRecord(ControlHeader header) -
Method Summary
Modifier and Type Method Description static ControlRecordreadControlRecord(java.io.DataInput inStream, ControlHeader header, int defaultRecordSize)Reads the next control record from the stream.static ControlRecordreadSingleControlRecord(java.io.DataInput inStream, ControlHeader header, int defaultRecordSize, PartialBlockette partialBlockette)voidsetRecordSize(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, writeASCIIMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
THREESPACE
public static final java.lang.String THREESPACE- See Also:
- Constant Field Values
-
-
Constructor Details
-
ControlRecord
-
-
Method Details
-
readControlRecord
public static ControlRecord readControlRecord(java.io.DataInput inStream, ControlHeader header, int defaultRecordSize) throws java.io.IOException, SeedFormatExceptionReads 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.IOExceptionSeedFormatException
-
readSingleControlRecord
public static ControlRecord readSingleControlRecord(java.io.DataInput inStream, ControlHeader header, int defaultRecordSize, PartialBlockette partialBlockette) throws java.io.IOException, SeedFormatException- Throws:
java.io.IOExceptionSeedFormatException
-
setRecordSize
- Throws:
SeedFormatException
-