PrintStream.write

Class Overview | Class Members | This Package | All Packages

Syntax 1

public void write( int b )

Parameters
  • b
    The byte to be written
Description

Write a byte, blocking if necessary. If the character is a newline and automatic flushing is enabled, the stream's flush method will be called.

Note that the byte is written as given; to write a character that will be translated according to the platform's default character encoding, use the print(char) or println(char) methods.

Overrides

write in class FilterOutputStream

See Also

print, println

Syntax 2

public void write( byte buf[], int off**, int** len )

Parameters
  • buf
    A byte array
  • off
    Offset from which to start taking bytes
  • len
    Number of bytes to write
Description

Write a portion of a byte array, blocking if necessary.

Overrides

write in class FilterOutputStream