01: /*
02: * This is free software, licensed under the Gnu Public License (GPL)
03: * get a copy from <http://www.gnu.org/licenses/gpl.html>
04: * $Id: AbstractOutputDevice.java,v 1.2 2005/03/24 13:57:45 hzeller Exp $
05: * author: Henner Zeller <H.Zeller@acm.org>
06: */
07: package henplus;
08:
09: /**
10: * An OutputDevice that does nothing.
11: */
12: public abstract class AbstractOutputDevice implements OutputDevice {
13: public void flush() {
14: }
15:
16: public void write(byte[] buffer, int off, int len) {
17: }
18:
19: public void print(String s) {
20: }
21:
22: public void println(String s) {
23: }
24:
25: public void println() {
26: }
27:
28: public void attributeBold() {
29: }
30:
31: public void attributeReset() {
32: }
33:
34: public void attributeGrey() {
35: }
36:
37: public void close() {
38: }
39:
40: public boolean isTerminal() {
41: return false;
42: }
43: }
|