public abstract class JspWriter
extends java.io.Writer
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoFlush
Whether the buffer is automatically flushed.
|
protected int |
bufferSize
Size of the buffer.
|
static int |
DEFAULT_BUFFER
The writer will buffer output using the default buffer size.
|
static int |
NO_BUFFER
The writer will not buffer output.
|
static int |
UNBOUNDED_BUFFER
The writer is buffered and unbounded.
|
Modifier | Constructor and Description |
---|---|
protected |
JspWriter(int bufferSize,
boolean autoFlush)
Make a JSP io stream.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
clear()
Clears the contents of the buffer.
|
abstract void |
clearBuffer()
Clears the contents of the buffer.
|
abstract void |
close()
Flush and close the stream.
|
abstract void |
flush()
Flush the buffer.
|
int |
getBufferSize()
Returns the buffer size.
|
abstract int |
getRemaining()
Returns the number of unused bytes in the buffer.
|
boolean |
isAutoFlush()
Indicates whether the buffer will be flushed automatically.
|
abstract void |
newLine()
Write a line separator.
|
abstract void |
print(boolean b)
Print a boolean value using
String.valueOf(boolean) . |
abstract void |
print(char c)
Print a character.
|
abstract void |
print(char[] s)
Print the characters in the specified array.
|
abstract void |
print(double d)
Print a double using
String.valueOf(double) . |
abstract void |
print(float f)
Print a float using
String.valueOf(float) . |
abstract void |
print(int i)
Print an int using
String.valueOf(int) . |
abstract void |
print(long l)
Print a long using
String.valueOf(long) . |
abstract void |
print(java.lang.Object o)
Print an object using
String.valueOf(java.lang.Object) . |
abstract void |
print(java.lang.String s)
Print a string.
|
abstract void |
println()
Print a line separator.
|
abstract void |
println(boolean b)
Print a boolean value using
String.valueOf(boolean) ,
followed by a line separator. |
abstract void |
println(char c)
Print a character,
followed by a line separator.
|
abstract void |
println(char[] cb)
Print the characters in the specified array,
followed by a line separator.
|
abstract void |
println(double d)
Print a double value using
String.valueOf(double) ,
followed by a line separator. |
abstract void |
println(float f)
Print a float value using
String.valueOf(float) ,
followed by a line separator. |
abstract void |
println(int i)
Print an int value using
String.valueOf(int) ,
followed by a line separator. |
abstract void |
println(long l)
Print a long value using
String.valueOf(long) ,
followed by a line separator. |
abstract void |
println(java.lang.Object o)
Print an object using
String.valueOf(java.lang.Object) ,
followed by a line separator. |
abstract void |
println(java.lang.String s)
Print a string, or the string "null" if the string is null,
followed by a line separator.
|
public static final int NO_BUFFER
public static final int DEFAULT_BUFFER
public static final int UNBOUNDED_BUFFER
protected int bufferSize
protected boolean autoFlush
protected JspWriter(int bufferSize, boolean autoFlush)
public abstract void newLine() throws java.io.IOException
java.io.IOException
public abstract void print(boolean b) throws java.io.IOException
String.valueOf(boolean)
.java.io.IOException
public abstract void print(char c) throws java.io.IOException
java.io.IOException
public abstract void print(int i) throws java.io.IOException
String.valueOf(int)
.java.io.IOException
public abstract void print(long l) throws java.io.IOException
String.valueOf(long)
.java.io.IOException
public abstract void print(float f) throws java.io.IOException
String.valueOf(float)
.java.io.IOException
public abstract void print(double d) throws java.io.IOException
String.valueOf(double)
.java.io.IOException
public abstract void print(char[] s) throws java.io.IOException
java.lang.NullPointerException
- if the array is nulljava.io.IOException
public abstract void print(java.lang.String s) throws java.io.IOException
java.io.IOException
public abstract void print(java.lang.Object o) throws java.io.IOException
String.valueOf(java.lang.Object)
.java.io.IOException
public abstract void println() throws java.io.IOException
java.io.IOException
public abstract void println(boolean b) throws java.io.IOException
String.valueOf(boolean)
,
followed by a line separator.java.io.IOException
public abstract void println(char c) throws java.io.IOException
java.io.IOException
public abstract void println(int i) throws java.io.IOException
String.valueOf(int)
,
followed by a line separator.java.io.IOException
public abstract void println(long l) throws java.io.IOException
String.valueOf(long)
,
followed by a line separator.java.io.IOException
public abstract void println(float f) throws java.io.IOException
String.valueOf(float)
,
followed by a line separator.java.io.IOException
public abstract void println(double d) throws java.io.IOException
String.valueOf(double)
,
followed by a line separator.java.io.IOException
public abstract void println(char[] cb) throws java.io.IOException
java.lang.NullPointerException
- if the array is nulljava.io.IOException
public abstract void println(java.lang.String s) throws java.io.IOException
java.io.IOException
public abstract void println(java.lang.Object o) throws java.io.IOException
String.valueOf(java.lang.Object)
,
followed by a line separator.java.io.IOException
public abstract void clear() throws java.io.IOException
java.io.IOException
public abstract void clearBuffer() throws java.io.IOException
java.io.IOException
public abstract void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public abstract void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException
public int getBufferSize()
public abstract int getRemaining()
public boolean isAutoFlush()