| Constructor and Description |
|---|
StringW() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream, flushing it first.
|
void |
flush()
Flushes the stream.
|
String |
toString() |
void |
write(char ch)
Writes a single character.
|
void |
write(String str)
Writes a string.
|
void |
write(String str,
int start,
int length)
Writes a portion of a string.
|
public void write(char ch)
WriterSubclasses that intend to support efficient single-character output should override this method.
public void write(String str, int start, int length) throws IOException
Writerwrite in interface Writerstr - A Stringstart - Offset from which to start writing characterslength - Number of characters to writeIOException - If an I/O error occurspublic void flush()
Writerpublic void close()
WriterCopyright © 2021. All rights reserved.