01: package java.io;
02:
03: public abstract class Writer {
04: protected Object lock;
05:
06: protected Writer() {
07: }
08:
09: protected Writer(Object lock) {
10: }
11:
12: public abstract void flush() throws IOException;
13:
14: public abstract void close() throws IOException;
15:
16: public void write(int b) throws IOException {
17: }
18:
19: public void write(char[] buf) throws IOException {
20: }
21:
22: public abstract void write(char[] buf, int offset, int len)
23: throws IOException;
24:
25: public void write(String str) throws IOException {
26: }
27:
28: public void write(String str, int offset, int len)
29: throws IOException {
30: }
31: }
|