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.String
THREESPACE
-
Fields inherited from class edu.sc.seis.seisFile.mseed.SeedRecord
blocketteFactory, blockettes, header, RECORD_SIZE
-
-
Constructor Summary
Constructors Constructor Description ControlRecord(ControlHeader header)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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
-
-