|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.io.Writer
java.io.PrintWriter
org.eclipse.jetty.io.UncheckedPrintWriter
public class UncheckedPrintWriter
A wrapper for the PrintWriter that re-throws the instances of
IOException thrown by the underlying implementation of
Writer as RuntimeIOException instances.
| 字段摘要 |
|---|
| 从类 java.io.PrintWriter 继承的字段 |
|---|
out |
| 从类 java.io.Writer 继承的字段 |
|---|
lock |
| 构造方法摘要 | |
|---|---|
UncheckedPrintWriter(OutputStream out)
Create a new PrintWriter, without automatic line flushing, from an existing OutputStream. |
|
UncheckedPrintWriter(OutputStream out,
boolean autoFlush)
Create a new PrintWriter from an existing OutputStream. |
|
UncheckedPrintWriter(Writer out)
|
|
UncheckedPrintWriter(Writer out,
boolean autoFlush)
Create a new PrintWriter. |
|
| 方法摘要 | |
|---|---|
boolean |
checkError()
|
void |
close()
Close the stream. |
void |
flush()
Flush the stream. |
void |
print(boolean b)
Print a boolean value. |
void |
print(char c)
Print a character. |
void |
print(char[] s)
Print an array of characters. |
void |
print(double d)
Print a double-precision floating-point number. |
void |
print(float f)
Print a floating-point number. |
void |
print(int i)
Print an integer. |
void |
print(long l)
Print a long integer. |
void |
print(Object obj)
Print an object. |
void |
print(String s)
Print a string. |
void |
println()
Terminate the current line by writing the line separator string. |
void |
println(boolean x)
Print a boolean value and then terminate the line. |
void |
println(char x)
Print a character and then terminate the line. |
void |
println(char[] x)
Print an array of characters and then terminate the line. |
void |
println(double x)
Print a double-precision floating-point number and then terminate the line. |
void |
println(float x)
Print a floating-point number and then terminate the line. |
void |
println(int x)
Print an integer and then terminate the line. |
void |
println(long x)
Print a long integer and then terminate the line. |
void |
println(Object x)
Print an Object and then terminate the line. |
void |
println(String x)
Print a String and then terminate the line. |
protected void |
setError()
|
void |
write(char[] buf)
Write an array of characters. |
void |
write(char[] buf,
int off,
int len)
Write a portion of an array of characters. |
void |
write(int c)
Write a single character. |
void |
write(String s)
Write a string. |
void |
write(String s,
int off,
int len)
Write a portion of a string. |
| 从类 java.io.PrintWriter 继承的方法 |
|---|
append, append, append, clearError, format, format, printf, printf |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public UncheckedPrintWriter(Writer out)
public UncheckedPrintWriter(Writer out,
boolean autoFlush)
out - A character-output streamautoFlush - A boolean; if true, the println() methods will flush the
output bufferpublic UncheckedPrintWriter(OutputStream out)
out - An output streamOutputStreamWriter.OutputStreamWriter(java.io.OutputStream)
public UncheckedPrintWriter(OutputStream out,
boolean autoFlush)
out - An output streamautoFlush - A boolean; if true, the println() methods will flush the
output bufferOutputStreamWriter.OutputStreamWriter(java.io.OutputStream)| 方法详细信息 |
|---|
public boolean checkError()
PrintWriter 中的 checkErrorprotected void setError()
PrintWriter 中的 setErrorpublic void flush()
Flushable 中的 flushPrintWriter 中的 flushpublic void close()
Closeable 中的 closePrintWriter 中的 closepublic void write(int c)
PrintWriter 中的 writec - int specifying a character to be written.
public void write(char[] buf,
int off,
int len)
PrintWriter 中的 writebuf - Array of charactersoff - Offset from which to start writing characterslen - Number of characters to writepublic void write(char[] buf)
PrintWriter 中的 writebuf - Array of characters to be written
public void write(String s,
int off,
int len)
PrintWriter 中的 writes - A Stringoff - Offset from which to start writing characterslen - Number of characters to writepublic void write(String s)
PrintWriter 中的 writes - String to be writtenpublic void print(boolean b)
String.valueOf(boolean) is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the write(int) method.
PrintWriter 中的 printb - The boolean to be printedpublic void print(char c)
write(int) method.
PrintWriter 中的 printc - The char to be printedpublic void print(int i)
String.valueOf(int) is translated into bytes according
to the platform's default character encoding, and these bytes are written
in exactly the manner of the write(int) method.
PrintWriter 中的 printi - The int to be printedInteger.toString(int)public void print(long l)
String.valueOf(long) is translated into bytes according
to the platform's default character encoding, and these bytes are written
in exactly the manner of the write(int) method.
PrintWriter 中的 printl - The long to be printedLong.toString(long)public void print(float f)
String.valueOf(float) is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the write(int)
method.
PrintWriter 中的 printf - The float to be printedFloat.toString(float)public void print(double d)
String.valueOf(double) is translated into
bytes according to the platform's default character encoding, and these
bytes are written in exactly the manner of the write(int) method.
PrintWriter 中的 printd - The double to be printedDouble.toString(double)public void print(char[] s)
write(int)
method.
PrintWriter 中的 prints - The array of chars to be printed
NullPointerException - If s is nullpublic void print(String s)
null then the string
"null" is printed. Otherwise, the string's characters are
converted into bytes according to the platform's default character
encoding, and these bytes are written in exactly the manner of the
write(int) method.
PrintWriter 中的 prints - The String to be printedpublic void print(Object obj)
String.valueOf(Object) method is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the write(int)
method.
PrintWriter 中的 printobj - The Object to be printedObject.toString()public void println()
line.separator, and is not necessarily a single newline
character ('\n').
PrintWriter 中的 printlnpublic void println(boolean x)
print(boolean) and then
println().
PrintWriter 中的 printlnx - the boolean value to be printedpublic void println(char x)
print(char) and then println().
PrintWriter 中的 printlnx - the char value to be printedpublic void println(int x)
print(int) and then println().
PrintWriter 中的 printlnx - the int value to be printedpublic void println(long x)
print(long) and then
println().
PrintWriter 中的 printlnx - the long value to be printedpublic void println(float x)
print(float) and then
println().
PrintWriter 中的 printlnx - the float value to be printedpublic void println(double x)
print(double) and then println().
PrintWriter 中的 printlnx - the double value to be printedpublic void println(char[] x)
print(char[]) and then
println().
PrintWriter 中的 printlnx - the array of char values to be printedpublic void println(String x)
print(String) and then
println().
PrintWriter 中的 printlnx - the String value to be printedpublic void println(Object x)
print(Object) and then
println().
PrintWriter 中的 printlnx - the Object value to be printed
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||