read


Description:

public virtual ssize_t read (uint8[] buf)

Attempts to read up to buf.length bytes from this into buf.

Parameters:

this

a Stream

buf

buffer

len

buffer length

Returns:

the number of bytes read or %-1 on fail.