public interface FiscalPort
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the port.
|
void |
flushAndWait()
Flush the output stream and wait until output is done.
|
int |
getBaudRate()
Get the baud rate.
|
java.io.InputStream |
getInputStream()
Get the input stream.
|
java.io.OutputStream |
getOutputStream()
Get the output stream.
|
int |
getTimeout()
Get the receive timeout.
|
boolean |
isOpen()
Returns true if the port is open.
|
void |
open()
Open the port.
|
void |
setBaudRate(int baudRate)
Set the baud rate.
|
void |
setTimeout(int ms)
Set the receive timeout.
|
void open() throws java.lang.Exception
java.lang.Exception
void close() throws java.lang.Exception
java.lang.Exception
boolean isOpen()
void setTimeout(int ms) throws java.lang.Exception
java.lang.Exception
int getTimeout() throws java.lang.Exception
java.lang.Exception
void setBaudRate(int baudRate) throws java.lang.Exception
java.lang.UnsupportedOperationException
- if baud rates are not applicable to this type of port.java.lang.Exception
int getBaudRate() throws java.lang.Exception
java.lang.UnsupportedOperationException
- if baud rates are not applicable to this type of port.java.lang.Exception
java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
void flushAndWait() throws java.io.IOException
java.io.IOException