public abstract class SeedRecord
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static BlocketteFactory |
blocketteFactory |
protected java.util.List<Blockette> |
blockettes |
protected ControlHeader |
header |
protected int |
RECORD_SIZE |
Constructor and Description |
---|
SeedRecord(ControlHeader header) |
Modifier and Type | Method and Description |
---|---|
void |
addBlockette(Blockette b) |
static BlocketteFactory |
getBlocketteFactory() |
Blockette[] |
getBlockettes() |
Blockette[] |
getBlockettes(int type) |
ControlHeader |
getControlHeader() |
PartialBlockette |
getFirstPartialBlockette()
if a seed blockette is continued in this record, a PartialBlockette will
exist here.
|
PartialBlockette |
getLastPartialBlockette()
if a seed blockette is continued in the next record, a PartialBlockette will
exist here.
|
int |
getNumBlockettes(int type) |
int |
getRecordSize() |
Blockette |
getUniqueBlockette(int type) |
static SeedRecord |
read(byte[] bytes) |
static SeedRecord |
read(java.io.DataInput inStream) |
static SeedRecord |
read(java.io.DataInput inStream,
int defaultRecordSize)
allows setting of a default record size, making reading of miniseed that
lack a Blockette1000.
|
static void |
setBlocketteFactory(BlocketteFactory bf) |
java.lang.String |
toString() |
void |
writeASCII(java.io.PrintWriter out) |
void |
writeASCII(java.io.PrintWriter out,
java.lang.String indent) |
protected static BlocketteFactory blocketteFactory
protected ControlHeader header
protected java.util.List<Blockette> blockettes
protected int RECORD_SIZE
public SeedRecord(ControlHeader header)
public static void setBlocketteFactory(BlocketteFactory bf)
public static BlocketteFactory getBlocketteFactory()
public static SeedRecord read(java.io.DataInput inStream) throws java.io.IOException, SeedFormatException
java.io.IOException
SeedFormatException
public static SeedRecord read(byte[] bytes) throws java.io.IOException, SeedFormatException
java.io.IOException
SeedFormatException
public static SeedRecord read(java.io.DataInput inStream, int defaultRecordSize) throws java.io.IOException, SeedFormatException
java.io.IOException
SeedFormatException
public void addBlockette(Blockette b) throws SeedFormatException
SeedFormatException
public Blockette[] getBlockettes()
public Blockette getUniqueBlockette(int type) throws SeedFormatException
SeedFormatException
public int getNumBlockettes(int type) throws SeedFormatException
SeedFormatException
public Blockette[] getBlockettes(int type)
public PartialBlockette getFirstPartialBlockette()
public PartialBlockette getLastPartialBlockette()
public ControlHeader getControlHeader()
public java.lang.String toString()
toString
in class java.lang.Object
public void writeASCII(java.io.PrintWriter out) throws java.io.IOException
java.io.IOException
public void writeASCII(java.io.PrintWriter out, java.lang.String indent) throws java.io.IOException
java.io.IOException
public int getRecordSize()