Javolution 6.0.0 java
|
Public Member Functions | |
AppendableWriter () | |
AppendableWriter | setOutput (Appendable output) |
void | write (char c) throws IOException |
void | write (int c) throws IOException |
void | write (char cbuf[], int off, int len) throws IOException |
void | write (String str, int off, int len) throws IOException |
void | write (CharSequence csq) throws IOException |
void | flush () |
void | close () |
void | reset () |
Private Attributes | |
Appendable | _output |
char[] | _tmpBuffer |
final CharSequence | _tmpBufferAsCharSequence |
This class allows any Appendable
to be used as a writer.
Definition at line 22 of file AppendableWriter.java.
javolution.io.AppendableWriter.AppendableWriter | ( | ) |
Creates a new appendable writer for which the appendable output is not set.
Definition at line 35 of file AppendableWriter.java.
void javolution.io.AppendableWriter.close | ( | ) |
Closes and resets this writer for reuse.
Definition at line 153 of file AppendableWriter.java.
References javolution.io.AppendableWriter._output, and javolution.io.AppendableWriter.reset().
void javolution.io.AppendableWriter.flush | ( | ) |
Flushes the stream.
Definition at line 146 of file AppendableWriter.java.
void javolution.io.AppendableWriter.reset | ( | ) |
Definition at line 159 of file AppendableWriter.java.
References javolution.io.AppendableWriter._output, and javolution.io.AppendableWriter._tmpBuffer.
Referenced by javolution.io.AppendableWriter.close(), and javolution.xml.ws.WebServiceClient.invoke().
AppendableWriter javolution.io.AppendableWriter.setOutput | ( | Appendable | output | ) |
Sets the appendable output being written to. For example:[code] Writer writer = new AppendableWriter().setOutput(new TextBuilder()); [/code]
output | the appendable written to. |
Definition at line 48 of file AppendableWriter.java.
References javolution.io.AppendableWriter._output.
Referenced by javolution.xml.ws.WebServiceClient.invoke().
void javolution.io.AppendableWriter.write | ( | char | c | ) | throws IOException |
Writes a single character.
c | char the character to be written. |
IOException | if an I/O error occurs. |
Definition at line 61 of file AppendableWriter.java.
References javolution.io.AppendableWriter._output.
void javolution.io.AppendableWriter.write | ( | char | cbuf[], |
int | off, | ||
int | len | ||
) | throws IOException |
Writes a portion of an array of characters.
cbuf | the array of characters. |
off | the offset from which to start writing characters. |
len | the number of characters to write. |
IOException | if an I/O error occurs. |
Definition at line 88 of file AppendableWriter.java.
References javolution.io.AppendableWriter._output, javolution.io.AppendableWriter._tmpBuffer, and javolution.io.AppendableWriter._tmpBufferAsCharSequence.
void javolution.io.AppendableWriter.write | ( | CharSequence | csq | ) | throws IOException |
Writes the specified character sequence.
csq | the character sequence. |
IOException | if an I/O error occurs |
Definition at line 137 of file AppendableWriter.java.
References javolution.io.AppendableWriter._output.
void javolution.io.AppendableWriter.write | ( | int | c | ) | throws IOException |
Writes the 16 low-order bits of the given integer value; the 16 high-order bits are ignored.
c | the value of the character to be written. |
IOException | if an I/O error occurs. |
Definition at line 74 of file AppendableWriter.java.
References javolution.io.AppendableWriter._output.
void javolution.io.AppendableWriter.write | ( | String | str, |
int | off, | ||
int | len | ||
) | throws IOException |
Writes a portion of a string.
str | a String. |
off | the offset from which to start writing characters. |
len | the number of characters to write. |
IOException | if an I/O error occurs |
Definition at line 120 of file AppendableWriter.java.
References javolution.io.AppendableWriter._output, and javolution.text.Text.valueOf().
|
private |
Holds the current appendable output or null
if closed.
Definition at line 27 of file AppendableWriter.java.
Referenced by javolution.io.AppendableWriter.close(), javolution.io.AppendableWriter.reset(), javolution.io.AppendableWriter.setOutput(), and javolution.io.AppendableWriter.write().
|
private |
Definition at line 96 of file AppendableWriter.java.
Referenced by javolution.io.AppendableWriter.reset(), and javolution.io.AppendableWriter.write().
|
private |
Definition at line 98 of file AppendableWriter.java.
Referenced by javolution.io.AppendableWriter.write().