|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
ch.claudio.lib.JTextAreaOutputStream
public final class JTextAreaOutputStream
Writer which writes to a text area.
Copyright (C) 2005-2007 Claudio Nieder <private@claudio.ch>, CH-8610 Uster
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Field Summary | |
---|---|
protected javax.swing.JTextArea |
target
|
Constructor Summary | |
---|---|
JTextAreaOutputStream(javax.swing.JTextArea targetArea)
|
Method Summary | |
---|---|
void |
close()
|
void |
flush()
|
static void |
main(java.lang.String[] args)
Print license. |
void |
write(byte[] cbuf)
|
void |
write(byte[] cbuf,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JTextArea target
Constructor Detail |
---|
public JTextAreaOutputStream(javax.swing.JTextArea targetArea)
targetArea
- The JTextArea into which to write.Method Detail |
---|
public void write(byte[] cbuf, int off, int len)
write
in class java.io.OutputStream
OutputStream.write(byte[], int, int)
public void write(int b)
write
in class java.io.OutputStream
OutputStream.write(int)
public void write(byte[] cbuf)
write
in class java.io.OutputStream
OutputStream.write(byte[])
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
OutputStream.flush()
public void close()
close
in interface java.io.Closeable
close
in class java.io.OutputStream
OutputStream.close()
public static void main(java.lang.String[] args)
args
- ignored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |