Java Reference
In-Depth Information
This field is a constant indicating that the
Writer
is not buffering output.
The
DEFAULT_BUFFER
Field
public static final int DEFAULT_BUFFER
This field is a constant indicating that the
Writer
is buffered and is using the implementation
default buffer size.
The
bufferSize
Field
protected int bufferSize
This field gives the
Writer
buffer size.
The
autoFlush
Field
protected boolean autoFlush
This field indicates whether the buffer will be automatically flushed.
The
JspWriter()
Method
protected JspWriter(int bufferSize, boolean autoFlush)
D
The
JspWriter()
method is a protected constructor. It returns no value and throws no excep-
tions.
It has two parameters:
•
int
•
boolean
The
newLine()
Method
public void newLine() throws java.io.IOException
The
newLine()
method writes a line separator. The line separator string is defined by the sys-
tem property
line.separator
, and is not guaranteed to be a single new line (\n) character.
This method has no parameters and returns no value.
It throws this exception:
•
java.io.IOException
The
print(boolean b)
Method
public void print(boolean b) throws java.io.IOException
The
print(boolean b)
method prints a
boolean
value. The
string
produced by
String.valueOf(boolean)
is translated into bytes according to the platform's default charac-
ter encoding, and these bytes are written in exactly the manner of the
Writer.write(int)
method.