BufferedWriter.write
Class Overview | Class Members |
This Package |
All Packages
public void write( int c ) throws IOException
Description
Write a single character.
Exceptions
IOException
If an I/O error occurs
Overrides
write in class Writer
public void write( char cbuf[],
int off,
int len ) throws IOException
Parameters
- cbuf
- A character array
- off
- Offset from which to start reading characters
- len
- Number of characters to write
Description
Write a portion of an array of characters.
Ordinarily this method stores characters from the given array into
this stream's buffer, flushing the buffer to the underlying stream as
needed. If the requested length is at least as large as the buffer,
however, then this method will flush the buffer and write the characters
directly to the underlying stream. Thus redundant
BufferedWriters will not copy data unnecessarily.
Exceptions
IOException
If an I/O error occurs
Overrides
write in class Writer
public void write( String s,
int off,
int len ) throws IOException
Parameters
- s
- String to be written
- off
- Offset from which to start reading characters
- len
- Number of characters to be written
Description
Write a portion of a String.
Exceptions
IOException
If an I/O error occurs
Overrides
write in class Writer