EasyManua.ls Logo

Epson TM T88V - Read

Epson TM T88V
122 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
110
read
Receives data from a device port.
Syntax
public int read
(byte[] data, int offset, int size,
int timeout)
throws EpsonIoException
Parameter
data : The receiving data buffer for storing received data.
offset : Specifies the point to start storing data in the receiving data buffer.
Please specify the offset value from the top of the receiving data buffer.
size : Specifies the number of bytes that can be received.
timeout : Specifies the time in milliseconds to receive data. The maximum value that can be
specified is 600000 (which equates to 10 minutes).
Return value
Returns the number of bytes that were received.
Exceptions
When processing fails, EpsonIoException is thrown with one of the following error values.
This API continues receiving until a receiving error occurs. However, if not even a single byte of
data is received during the period specified in timeout, the process ends.
If "0" is specified for size, no data will be received. In such a case, the return value will be
"0".
Error Value Description
IoStatus.ERR_ILLEGAL This API was called when no device port was open.
IoStatus.ERR_PROCESSING Could not execute process.
IoStatus.ERR_PARAM Invalid parameter was passed.
IoStatus.ERR_CONNECT Connection error occurred
IoStatus.ERR_MEMORY Could not allocate memory.
IoStatus.ERR_FAILURE An unspecified error occurred.

Table of Contents

Other manuals for Epson TM T88V

Related product manuals