edu.sc.seis.seisFile.gcf
Class GCFBlock
java.lang.Object
edu.sc.seis.seisFile.gcf.AbstractGCFBlock
edu.sc.seis.seisFile.gcf.GCFBlock
public class GCFBlock
- extends AbstractGCFBlock
Constructor Summary |
GCFBlock(GCFHeader header,
int[] diffData,
int firstSample,
int lastSample,
boolean isSerial)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MOCK_SYSID
public static final java.lang.String MOCK_SYSID
- See Also:
- Constant Field Values
MOCK_STREAMID
public static final java.lang.String MOCK_STREAMID
- See Also:
- Constant Field Values
GCFBlock
public GCFBlock(GCFHeader header,
int[] diffData,
int firstSample,
int lastSample,
boolean isSerial)
getSize
public int getSize()
- Specified by:
getSize
in class AbstractGCFBlock
getDiffData
public int[] getDiffData()
getFirstSample
public int getFirstSample()
getLastSample
public int getLastSample()
getUndiffData
public int[] getUndiffData()
throws GCFFormatException
- Throws:
GCFFormatException
write
public void write(java.io.DataOutput out)
throws java.lang.NumberFormatException,
java.io.IOException
- Specified by:
write
in class AbstractGCFBlock
- Throws:
java.lang.NumberFormatException
java.io.IOException
mockGCF
public static GCFBlock mockGCF(java.util.Date startTime,
int[] data,
boolean isSerial)
- creates a mock GCFBlock. Note the data is not differenced, that is taken care of
internal to this method.
- Parameters:
startTime
- data
- raw samples.isSerial
-
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode
in class AbstractGCFBlock
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class AbstractGCFBlock