|
||||||||||
| 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
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.
| 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)
Initialize the waveform object with an array of float values. |
|
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)
Initialize the waveform object with an array of integer values. |
|
| Method Summary | |
float[] |
getDecodedFloats()
Decode waveform data to an array of float values. |
float[] |
getDecodedFloats(float bias)
Decode waveform data to an array of float values. |
int[] |
getDecodedIntegers()
Decode waveform data to an array of integer values. |
int[] |
getDecodedIntegers(int bias)
Decode waveform data to an array of integer values. |
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 |
| Constructor Detail |
public Waveform(byte[] record,
int dataOffset,
int numSamples,
java.lang.String encoding,
boolean swapBytes)
public Waveform(int[] intData,
int maxByteLen,
java.lang.String encoding,
int bias)
throws java.lang.Exception
public Waveform(int[] intData,
int maxByteLen,
java.lang.String encoding)
throws java.lang.Exception
public Waveform(float[] floatData,
int maxByteLen,
java.lang.String encoding,
float bias)
throws java.lang.Exception
public Waveform(float[] floatData,
int maxByteLen,
java.lang.String encoding)
throws java.lang.Exception
| Method Detail |
public int getType()
getType in class SeedObjectpublic int getLookupId()
getLookupId in class SeedObject
public int[] getDecodedIntegers(int bias)
throws java.lang.Exception
java.lang.Exception
public int[] getDecodedIntegers()
throws java.lang.Exception
java.lang.Exception
public float[] getDecodedFloats(float bias)
throws java.lang.Exception
java.lang.Exception
public float[] getDecodedFloats()
throws java.lang.Exception
java.lang.Exception
public byte[] getEncodedBytes()
throws java.lang.Exception
java.lang.Exceptionpublic 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 SeedObjectpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||