Package com.zebra.sdk.comm
Interface ConnectionWithWriteLogging
- All Superinterfaces:
Connection
- All Known Implementing Classes:
ConnectionA,ConnectionStatusA,DriverPrinterConnection,MultichannelConnection,MultichannelRemoteConnection,MultichannelTcpConnection,MultichannelTlsConnection,RemoteConnection,RemoteStatusConnection,TcpConnection,TcpStatusConnection,TlsConnection,TlsStatusConnection,UsbConnection
A connection to a device that copies data sent to the connection to the provided stream.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddWriteLogStream(OutputStream logStream) Adds the OutputStream to the connection to log all data written to the connected device.Methods inherited from interface com.zebra.sdk.comm.Connection
bytesAvailable, close, getConnectionReestablisher, getMaxTimeoutForRead, getSimpleConnectionName, getTimeToWaitForMoreData, isConnected, open, read, read, readChar, sendAndWaitForResponse, sendAndWaitForResponse, sendAndWaitForValidResponse, sendAndWaitForValidResponse, setMaxTimeoutForRead, setTimeToWaitForMoreData, toString, waitForData, write, write, write
-
Method Details
-
addWriteLogStream
Adds the OutputStream to the connection to log all data written to the connected device.- Parameters:
logStream- log all write data to this stream.
-