T - the generic type of the componentpublic abstract class AbstractComponentOutputStream<T extends JComponent> extends OutputStream
AbstractComponentOutputStream is inspired from stackoverflow
question and the accepted answer.| Constructor and Description |
|---|
AbstractComponentOutputStream(T component) |
AbstractComponentOutputStream(T component,
int maxLines) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
append(JComponent swingComponent,
String text) |
void |
clear()
Clear the current console text area.
|
void |
close() |
void |
flush() |
protected abstract void |
replaceRange(JComponent swingComponent,
String text,
int start,
int end) |
protected abstract void |
setText(JComponent swingComponent,
String text)
Sets the text.
|
void |
write(byte[] ba) |
void |
write(byte[] ba,
int str,
int len) |
void |
write(int val) |
public AbstractComponentOutputStream(T component)
public AbstractComponentOutputStream(T component, int maxLines)
protected abstract void append(JComponent swingComponent, String text)
public void clear()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic void flush()
flush in interface Flushableflush in class OutputStreamprotected abstract void replaceRange(JComponent swingComponent, String text, int start, int end)
protected abstract void setText(JComponent swingComponent, String text)
swingComponent - the swing componenttext - the textpublic void write(byte[] ba)
write in class OutputStreampublic void write(byte[] ba,
int str,
int len)
write in class OutputStreampublic void write(int val)
write in class OutputStreamCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.