|
||||||||
| 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.InstrumentPortOutputStream
public class InstrumentPortOutputStream
InstrumentPortOutputStream enforces inter-byte delay when writing to the instrument
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
_log4j
|
| Constructor Summary | |
|---|---|
InstrumentPortOutputStream(InstrumentPort port,
java.io.OutputStream os)
Create a new InstrumentPortInputStream |
|
| Method Summary | |
|---|---|
void |
close()
Close the outputstream |
void |
flush()
Flush the outputstream |
void |
setInterByteMsec(int interByteMsec)
Set inter-byte millisec delay to specified value. |
void |
write(byte[] b)
Writes b.length bytes from specified byte array to output stream, enforcing inter-byte delay. |
void |
write(byte[] b,
int offset,
int nBytes)
Writes nBytes bytes from specified byte array starting at specified offset to output stream, enforcing inter-byte delay. |
void |
write(int b)
Write a char to the outputstream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log4j
| Constructor Detail |
|---|
public InstrumentPortOutputStream(InstrumentPort port,
java.io.OutputStream os)
| Method Detail |
|---|
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] b,
int offset,
int nBytes)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void setInterByteMsec(int interByteMsec)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||