|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.utils.OutputToInstrument
public class OutputToInstrument
OutputToInstrument encapsulates an OutputStream; enforces specified delay between writing output bytes, since many instruments have limited processors which might otherwise be overwhelmed by the incoming characters. Note that OutputToInstrument can not directly extend OutputStream, since the OutputStream we have to work with is returned by
| Constructor Summary | |
|---|---|
OutputToInstrument(java.io.OutputStream outputStream)
|
|
| Method Summary | |
|---|---|
void |
flush()
Flush all characters to instrument. |
void |
write(byte[] b)
Write bytes to instrument, enforcing default delay between writing of each byte. |
void |
write(byte[] b,
int interByteMsec)
Write bytes to instrument, enforcing specified delay between writing of each byte. |
void |
write(int b)
Write a single int to the instrument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputToInstrument(java.io.OutputStream outputStream)
| Method Detail |
|---|
public void write(byte[] b,
int interByteMsec)
throws java.io.IOException
java.io.IOException
public void write(byte[] b)
throws java.io.IOException
java.io.IOException
public void write(int b)
throws java.io.IOException
java.io.IOException
public void flush()
throws java.io.IOException
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||