public class StreamWriter
extends java.lang.Object
Constructor and Description |
---|
StreamWriter(java.io.OutputStream output)
Create a new StreamWriter from an existing OutputStream.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the stream.
|
void |
flush()
Flush the stream.
|
void |
print(java.lang.String str)
Write a string.
|
void |
println()
Write the line separator.
|
void |
println(java.lang.String str)
Write a string and the line separator.
|
public StreamWriter(java.io.OutputStream output) throws java.io.IOException
output
- an output streamjava.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public void print(java.lang.String str) throws java.io.IOException
str
- the String value to be writtenjava.io.IOException
public void println(java.lang.String str) throws java.io.IOException
str
- the String value to be writtenjava.io.IOException
public void println() throws java.io.IOException
java.io.IOException