home *** CD-ROM | disk | FTP | other *** search
- package symantec.itools.db.net;
-
- import java.io.IOException;
- import java.io.OutputStream;
-
- class NetOutputStream extends OutputStream {
- protected SocketWriter out;
- short _id;
-
- NetOutputStream(SocketWriter out, short ID) {
- this.out = out;
- this._id = ID;
- }
-
- public void write(int b) throws IOException {
- this.out.write(this._id, b);
- }
-
- public void write(byte[] b) throws IOException {
- this.out.write(this._id, b, 0, b.length);
- }
-
- public void write(byte[] b, int off, int len) throws IOException {
- this.out.write(this._id, b, off, len);
- }
-
- public void flush() throws IOException {
- this.out.flush();
- }
-
- public void close() throws IOException {
- this.flush();
- this.out.close();
- }
- }
-