Public Member Functions | |
JTextAreaWriter (JTextArea textArea) | |
void | setTextArea (JTextArea textArea) |
void | close () |
void | flush () throws IOException |
void | write (char[] charArray) throws IOException |
void | write (char[] charArray, int offset, int length) throws IOException |
void | write (int c) throws IOException |
void | write (String string) throws IOException |
void | write (String string, int offset, int length) throws IOException |
Anthony Eden
Definition at line 40 of file JTextAreaWriter.java.
|
Constructor.
Definition at line 53 of file JTextAreaWriter.java. References org.objectweb.cjdbc.console.gui.jtools.JTextAreaWriter.setTextArea(). 00054 { 00055 setTextArea(textArea); 00056 }
|
|
Close the stream. Definition at line 75 of file JTextAreaWriter.java. 00076 {
00077 closed = true;
00078 }
|
|
Flush the data that is currently in the buffer.
Definition at line 86 of file JTextAreaWriter.java. 00087 { 00088 if (closed) 00089 { 00090 throw new IOException("The stream is closed."); 00091 } 00092 textArea.append(getBuffer().toString()); 00093 textArea.setCaretPosition(textArea.getDocument().getLength()); 00094 buffer = null; 00095 }
|
|
Set the JTextArea to write to.
Definition at line 64 of file JTextAreaWriter.java. Referenced by org.objectweb.cjdbc.console.gui.jtools.JTextAreaWriter.JTextAreaWriter(). 00065 { 00066 if (textArea == null) 00067 { 00068 throw new IllegalArgumentException("The text area must not be null."); 00069 } 00070 this.textArea = textArea; 00071 }
|
|
Write the given String to the output stream beginning from the given offset and proceeding to until the given length is reached.
Definition at line 171 of file JTextAreaWriter.java. 00172 { 00173 if (closed) 00174 { 00175 throw new IOException("The stream is not open."); 00176 } 00177 getBuffer().append(string.substring(offset, length)); 00178 }
|
|
Write the given String to the output stream.
Definition at line 152 of file JTextAreaWriter.java. 00153 { 00154 if (closed) 00155 { 00156 throw new IOException("The stream is not open."); 00157 } 00158 getBuffer().append(string); 00159 }
|
|
Write the given character to the output stream.
Definition at line 136 of file JTextAreaWriter.java. 00137 { 00138 if (closed) 00139 { 00140 throw new IOException("The stream is not open."); 00141 } 00142 getBuffer().append((char) c); 00143 }
|
|
Write the given character array to the output stream beginning from the given offset and proceeding to until the given length is reached.
Definition at line 119 of file JTextAreaWriter.java. 00121 { 00122 if (closed) 00123 { 00124 throw new IOException("The stream is not open."); 00125 } 00126 getBuffer().append(charArray, offset, length); 00127 }
|
|
Write the given character array to the output stream.
Definition at line 104 of file JTextAreaWriter.java. 00105 { 00106 write(charArray, 0, charArray.length); 00107 }
|