|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.io.Writer
ewe.io.PrintWriter
This class provides the same API as java.io.PrintWriter. None of its methods throws an Exception. You can check the error status of the Writer by calling the checkError() method.
| Field Summary | |
String |
lineSeparator
Use this to provide your own line separator String. |
protected Writer |
writer
The underlying writer. |
| Fields inherited from class ewe.io.Writer |
lock |
| Constructor Summary | |
PrintWriter(BasicStream out)
Create a new TextWriter to write to the specified Stream. |
|
PrintWriter(BasicStream out,
boolean autoFlush)
Create a new TextWriter to write to the specified Stream. |
|
PrintWriter(OutputStream out)
Create a new TextWriter to write to the specified Stream. |
|
PrintWriter(OutputStream out,
boolean autoFlush)
Create a new TextWriter to write to the specified Stream. |
|
PrintWriter(Writer writer)
|
|
PrintWriter(Writer writer,
boolean autoFlush)
|
|
| Method Summary | |
boolean |
checkError()
Flush the stream and check its error state. |
void |
close()
Close the stream, flushing it first. |
void |
flush()
Flush the stream. |
void |
print(boolean value)
|
void |
print(char value)
|
void |
print(char[] chars)
|
void |
print(double value)
|
void |
print(float value)
|
void |
print(int value)
|
void |
print(long value)
|
void |
print(Object value)
|
void |
print(String str)
|
void |
println()
Output a line-feed (end of line) character. |
void |
println(boolean value)
|
void |
println(char value)
|
void |
println(char[] chars)
|
void |
println(double value)
|
void |
println(float value)
|
void |
println(int value)
|
void |
println(long value)
|
void |
println(Object value)
|
void |
println(String str)
|
protected void |
setError()
|
void |
write(char[] chars)
Write out a number of characters. |
void |
write(char[] chars,
int offset,
int length)
Write out a number of characters. |
void |
write(int aChar)
Write a single character. |
void |
write(String str)
Write a string. |
void |
write(String str,
int offset,
int length)
Write a portion of a string. |
| Methods inherited from class ewe.io.Writer |
getLock |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Field Detail |
protected Writer writer
public String lineSeparator
| Constructor Detail |
public PrintWriter(BasicStream out)
out - The output Stream.
public PrintWriter(BasicStream out,
boolean autoFlush)
out - The output Stream.autoFlush - if this is true a println() method will flush the output stream.
public PrintWriter(OutputStream out,
boolean autoFlush)
out - The OutputStream.autoFlush - if this is true a println() method will flush the output stream.public PrintWriter(OutputStream out)
out - The OutputStream.public PrintWriter(Writer writer)
public PrintWriter(Writer writer,
boolean autoFlush)
| Method Detail |
public void write(char[] chars,
int offset,
int length)
write in class Writerchars - The characters to be writen.offset - The location in the chars to start writing from.length - The number of characters to write.public void write(char[] chars)
write in class Writerchars - The characters to be writen.public void write(String str)
Writer
write in class Writerstr - String to be writtenpublic void write(int aChar)
Writer
write in class Writer
public void write(String str,
int offset,
int length)
Writer
write in class Writerstr - A Stringoffset - Offset from which to start writing characterslength - Number of characters to writepublic void flush()
Writer
flush in class Writerpublic void close()
Writer
close in class Writerpublic void println()
protected void setError()
public boolean checkError()
public void print(char[] chars)
public void print(String str)
public void print(int value)
public void print(boolean value)
public void print(char value)
public void print(float value)
public void print(double value)
public void print(long value)
public void print(Object value)
public void println(char[] chars)
public void println(String str)
public void println(int value)
public void println(boolean value)
public void println(char value)
public void println(float value)
public void println(double value)
public void println(long value)
public void println(Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||