Share via


ObjectOutputStream.write

Class Overview | Class Members | This Package | All Packages

Syntax 1

public void write( int data ) throws IOException

Parameters
  • b
    the byte
Description

Writes a byte. This method will block until the byte is actually written.

Exceptions

IOException If an I/O error has occurred.

Overrides

write in class OutputStream

Syntax 2

public void write( byte b[] ) throws IOException

Parameters
  • b
    the data to be written
Description

Writes an array of bytes. This method will block until the bytes are actually written.

Exceptions

IOException If an I/O error has occurred.

Overrides

write in class OutputStream

Syntax 3

public void write( byte b[], int off**, int** len ) throws IOException

Parameters
  • b
    the data to be written
  • off
    the start offset in the data
  • len
    the number of bytes that are written
Description

Writes a sub array of bytes.

Exceptions

IOException If an I/O error has occurred.

Overrides

write in class OutputStream