Package comm
Class Comm

Public Method read

int read()

Throws:

int read(byte[] buf)

Throws:

int read(byte[] buf, int offset, int len)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

read() method:

Returns Description
value a single byte

The read() method returns one single byte or -1 if nothing was read.


read(byte[] buf) method:

Parameter Description
buf array storing the returned data

Reads buf.length bytes into the array buf. The number of bytes read will be returned.

Returns Description
value number of returned bytes


read(byte[] buf, int offset, int len) method:

Parameter Description
buf array storing the returned data
offset array offset
len count of bytes

Reads len bytes into the array buf starting at offset. The number of bytes read will be returned.

Returns Description
value number of returned bytes