equal
deleted
inserted
replaced
47 |
47 |
48 /** |
48 /** |
49 * Write the data out, NOW. |
49 * Write the data out, NOW. |
50 */ |
50 */ |
51 @Override |
51 @Override |
52 synchronized public void write(byte[] b, int off, int len) |
52 public synchronized void write(byte[] b, int off, int len) |
53 throws IOException { |
53 throws IOException { |
54 if (b == null) { |
54 if (b == null) { |
55 throw new NullPointerException(); |
55 throw new NullPointerException(); |
56 } else if (off < 0 || len < 0 || len > b.length - off) { |
56 } else if (off < 0 || len < 0 || len > b.length - off) { |
57 throw new IndexOutOfBoundsException(); |
57 throw new IndexOutOfBoundsException(); |
74 |
74 |
75 /** |
75 /** |
76 * Write one byte now. |
76 * Write one byte now. |
77 */ |
77 */ |
78 @Override |
78 @Override |
79 synchronized public void write(int i) throws IOException { |
79 public synchronized void write(int i) throws IOException { |
80 oneByte[0] = (byte)i; |
80 oneByte[0] = (byte)i; |
81 write(oneByte, 0, 1); |
81 write(oneByte, 0, 1); |
82 } |
82 } |
83 |
83 |
84 /* |
84 /* |