40 |
class StreamOutputStream extends DTPOutputStream |
class StreamOutputStream extends DTPOutputStream |
41 |
{ |
{ |
42 |
|
|
43 |
StreamOutputStream(DTP dtp, OutputStream out) |
StreamOutputStream(DTP dtp, OutputStream out) |
44 |
{ |
{ |
45 |
super(dtp, out); |
super(dtp, out); |
46 |
} |
} |
47 |
|
|
48 |
|
public void write(int c) throws IOException |
49 |
|
{ |
50 |
|
if (transferComplete) |
51 |
|
return; |
52 |
|
out.write(c); |
53 |
|
} |
54 |
|
|
55 |
public void write(int c) throws IOException |
public void write(byte[] b) throws IOException |
56 |
{ |
{ |
57 |
if (transferComplete) |
write(b, 0, b.length); |
58 |
return; |
} |
|
super.write(c); |
|
|
} |
|
59 |
|
|
60 |
public void write(byte[]b) throws IOException |
public void write(byte[] b, int off, int len) throws IOException |
61 |
{ |
{ |
62 |
write(b, 0, b.length); |
if (transferComplete) |
63 |
} |
return; |
64 |
|
out.write(b, off, len); |
65 |
public void write(byte[]b, int off, int len) throws IOException |
} |
|
{ |
|
|
if (transferComplete) |
|
|
return; |
|
|
super.write(b, off, len); |
|
|
} |
|
66 |
|
|
67 |
} |
} |