Microsoft SDK for Java

read

The read method of the OffsetInputStreamFilter Class contains the following signatures:

read()
read(byte b[], int off, int len)

read()

Reads a single byte from the input stream.

Syntax

public synchronized int read() throws IOException;

Return Value

Returns the byte that was read from the input stream.

Exceptions

IOException if an error occurs while attempting to read.

read(byte b[], int off, int len)

Reads a sequence of bytes from the input stream into the buffer.

Syntax

public synchronized int read(byte b[], int off, int len) throws IOException;

Return Value

Returns the number of bytes read.

Parameters

b The buffer to store the bytes in.
off The offset in the buffer where the first byte read is stored.
len The number of bytes to read.

Exceptions

IOException if an error occurs while attempting to read.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.