Writer.write
Class Overview | Class Members |
This Package |
All Packages
public void write( int c ) throws IOException
Description
Write a single character. The character to be written is contained in
the 16 low-order bits of the given integer value; the 16 high-order bits
are ignored.
Subclasses that intend to support efficient single-character output
should override this method.
Exceptions
IOException
If an I/O error occurs
public void write( char cbuf[] ) throws IOException
Parameters
- cbuf
- Array of characters to be written
Description
Write an array of characters.
Exceptions
IOException
If an I/O error occurs
public abstract void write( char cbuf[],
int off,
int len ) throws IOException
Parameters
- cbuf
- Array of characters
- off
- Offset from which to start writing characters
- len
- Number of characters to write
Description
Write a portion of an array of characters.
Exceptions
IOException
If an I/O error occurs
public void write( String str ) throws IOException
Parameters
- str
- String to be written
Description
Write a string.
Exceptions
IOException
If an I/O error occurs
public void write( String str,
int off,
int len ) throws IOException
Parameters
- str
- A String
- off
- Offset from which to start writing characters
- len
- Number of characters to write
Description
Write a portion of a string.
Exceptions
IOException
If an I/O error occurs