|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iris.Fissures.seed.container.SeedObject
edu.iris.Fissures.seed.container.Waveform
public class Waveform
Default waveform container. Data is stored in its native encoded form. This object retains information on the encoding format, the number of samples, and the byte swapping flag.
Field Summary | |
---|---|
static int |
defaultMaxByteLen
The default maximum byte length which is the maximum value for Steim1/2 encoding. |
Constructor Summary | |
---|---|
Waveform(byte[] record,
int dataOffset,
int numSamples,
java.lang.String encoding,
boolean swapBytes)
Initialize the waveform object with an encoded data set starting at the offset index indicated. |
|
Waveform(float[] floatData,
int maxByteLen,
java.lang.String encoding)
Initialize the waveform object with an array of float values. |
|
Waveform(float[] floatData,
int maxByteLen,
java.lang.String encoding,
float bias)
Deprecated. |
|
Waveform(int[] intData,
int maxByteLen,
java.lang.String encoding)
Initialize the waveform object with an array of integer values. |
|
Waveform(int[] intData,
int maxByteLen,
java.lang.String encoding,
int bias)
Deprecated. |
Method Summary | |
---|---|
float[] |
getDecodedFloats()
Decode waveform data to an array of float values. |
float[] |
getDecodedFloats(float bias)
Deprecated. |
int[] |
getDecodedIntegers()
Decode waveform data to an array of integer values. |
int[] |
getDecodedIntegers(int bias)
Deprecated. |
DecompressedData |
getDecompressedData()
|
DecompressedData |
getDecompressedData(int bias)
Deprecated. |
byte[] |
getEncodedBytes()
Return the raw encoded byte stream. |
java.lang.String |
getEncoding()
Return the String representing the encoding format of the data. |
int |
getLookupId()
Return a fixed value for the lookup ID. |
int |
getNumSamples()
Return the number of samples of this waveform. |
boolean |
getSwapBytes()
Return the byte swap flag. |
int |
getType()
Return a fixed value representing this SeedObject type. |
static void |
main(java.lang.String[] args)
Test method. |
void |
setEncoding(java.lang.String format)
Identify the encoding of the data contained in this object. |
void |
setNumSamples(int samples)
Change the number of samples representing this data, if you dare. |
void |
setSwapBytes(boolean flag)
Toggle the swap byte flag to true or false. |
java.lang.String |
toString()
Display a string description of this Waveform object's contents. |
Methods inherited from class edu.iris.Fissures.seed.container.SeedObject |
---|
compareTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int defaultMaxByteLen
Constructor Detail |
---|
public Waveform(byte[] record, int dataOffset, int numSamples, java.lang.String encoding, boolean swapBytes)
@Deprecated public Waveform(int[] intData, int maxByteLen, java.lang.String encoding, int bias) throws SeedInputException, SeedException, SteimException, java.io.IOException
SeedInputException
SeedException
SteimException
java.io.IOException
public Waveform(int[] intData, int maxByteLen, java.lang.String encoding) throws SeedInputException, SeedException, SteimException, java.io.IOException
SeedInputException
SeedException
SteimException
java.io.IOException
@Deprecated public Waveform(float[] floatData, int maxByteLen, java.lang.String encoding, float bias) throws SeedInputException, SeedException
SeedInputException
SeedException
public Waveform(float[] floatData, int maxByteLen, java.lang.String encoding) throws SeedInputException, SeedException
SeedInputException
SeedException
Method Detail |
---|
public int getType()
getType
in class SeedObject
public int getLookupId()
getLookupId
in class SeedObject
@Deprecated public DecompressedData getDecompressedData(int bias) throws CodecException, SeedException
CodecException
SeedException
public DecompressedData getDecompressedData() throws CodecException, SeedException
CodecException
SeedException
@Deprecated public int[] getDecodedIntegers(int bias) throws CodecException, SeedException
CodecException
SeedException
public int[] getDecodedIntegers() throws CodecException, SeedException
CodecException
SeedException
@Deprecated public float[] getDecodedFloats(float bias) throws SteimException, SeedException, CodecException
SteimException
SeedException
CodecException
public float[] getDecodedFloats() throws SteimException, SeedException, CodecException
SteimException
SeedException
CodecException
public byte[] getEncodedBytes()
public int getNumSamples()
public boolean getSwapBytes()
public java.lang.String getEncoding()
public void setNumSamples(int samples)
public void setSwapBytes(boolean flag)
public void setEncoding(java.lang.String format)
public java.lang.String toString()
toString
in class SeedObject
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |