|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.OutputStream
org.mbari.siam.core.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. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the PuckOutputStream. |
boolean |
initPuckStream()
Get the attention of the puck and erase it's contents |
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)
| 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 | |||||||