|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.InputStream
org.mbari.siam.core.PuckInputStream
public class PuckInputStream
The PuckInputStream constructor needs an input and output stream to a device that supports the puck serial protocol. The PuckInputStream provides a basic InputStream by using the pucks serial protocol to query the device for data.
| Constructor Summary | |
|---|---|
PuckInputStream(java.io.InputStream in,
java.io.OutputStream out)
Creates a PuckInputStream by using an intput and output stream to device that implements the pucks serial protocol. |
|
| Method Summary | |
|---|---|
int |
available()
The available method returns the number of buffered puck bytes available to be read. |
void |
close()
Closes the PuckInputStream. |
boolean |
initPuckStream()
This method is used to synchronize communications with the puck. |
int |
read()
The read method returns the next available byte from the puck. |
void |
resetStream()
Set the PuckInputStream to the begining. |
long |
skip(long n)
Skips over and discards n bytes of data from the input stream. |
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, read, read, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PuckInputStream(java.io.InputStream in,
java.io.OutputStream out)
| Method Detail |
|---|
public void resetStream()
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic boolean initPuckStream()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||