|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jm.jigl.SignalInputStream
Class declaration
jigl.signal.SignalInputStream
Field Summary | |
protected java.io.BufferedInputStream |
data
|
protected int |
maxval
|
protected float |
maxvalf
|
protected int |
ndims
Number of dimensions the signal has |
protected int |
X
Width of the signal |
Constructor Summary | |
SignalInputStream(SignalInputStream stream)
Makes a new SignalInputStream from another SignalInputStream |
|
SignalInputStream(java.lang.String fn)
Opens a SignalInputStream from a filename |
|
SignalInputStream(java.lang.String url,
int i)
Opens a SignalInputStream from a filename |
Method Summary | |
void |
close()
Closes the InputStream |
int |
ndims()
Returns the number of Dimensions that the signal has |
Signal |
read()
Reads in the Signal |
void |
readHeader()
Reads the file header: determines type, size and range of values |
int |
readMagic()
Gets the magic number and returns the type |
int |
type()
Returns the type of signal UNKNOWN = 0 PDS_ASCII = 1 -- not Implemented PRS_ASCII = 2 -- not Implemented PDS_RAW = 3 PRS_RAW = 4 |
int |
X()
Returns the width of the signal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.BufferedInputStream data
protected int ndims
protected int X
protected int maxval
protected float maxvalf
Constructor Detail |
public SignalInputStream(java.lang.String fn) throws java.io.FileNotFoundException, SignalNotSupportedException, java.io.IOException
fn
- the filename to openpublic SignalInputStream(java.lang.String url, int i) throws java.io.IOException, SignalNotSupportedException, java.net.MalformedURLException
public SignalInputStream(SignalInputStream stream)
Method Detail |
public int ndims()
public int X()
public int type()
public void close() throws java.io.IOException
java.io.IOException
public int readMagic() throws SignalNotSupportedException, java.io.IOException
SignalNotSupportedException
java.io.IOException
public void readHeader() throws SignalNotSupportedException, java.io.IOException
SignalNotSupportedException
java.io.IOException
public Signal read() throws SignalNotSupportedException, IllegalPBMFormatException, java.io.IOException
SignalNotSupportedException
IllegalPBMFormatException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |