|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.OutputStream
org.mbari.siam.distributed.platform.PuckOutputStream
public class PuckOutputStream
The PuckOutputStream is used to store binary data on the pucks non volatile memory. The PuckOutputStream can only write to a blank puck. If the the puck is not blank this implementation of the PuckOutputStream will throw an IOException if a puck write is attepmted. To erase the pucks non volatile memory the erasePuck method can be used from PuckUtils.
PuckUtils| Constructor Summary | |
|---|---|
PuckOutputStream(java.io.InputStream in,
java.io.OutputStream out)
Creates a PuckOutputStream by using an intput and output stream to a to device that implements the pucks serial protocol. |
|
PuckOutputStream(gnu.io.SerialPort serial_port)
Creates a PuckOutputStream by using a SerialPort Object to a to device that implements the pucks serial protocol. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the PuckOutputStream. |
boolean |
initPuckStream()
This method is used to synchronize communications with the puck. |
void |
write(int b)
Writes a byte to the pucks non volatile memory. |
| Methods inherited from class java.io.OutputStream |
|---|
flush, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PuckOutputStream(java.io.InputStream in,
java.io.OutputStream out)
public PuckOutputStream(gnu.io.SerialPort serial_port)
| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic boolean initPuckStream()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||