01: /*
02: * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/web/TKPseudoOutputStream.java,v 1.5 2000/05/22 15:01:35 careck Exp $
03: *
04: */
05: package com.teamkonzept.web;
06:
07: import java.io.*;
08:
09: public abstract class TKPseudoOutputStream extends OutputStream {
10:
11: public abstract void write(String s);
12:
13: public void write(int b) {
14: char c = (char) b;
15: write(new Character(c).toString());
16:
17: }
18:
19: public void write(byte[] b) {
20: write(new String(b, 0));
21: }
22:
23: public void write(byte[] b, int off, int len) {
24: write(new String(b, 0, off, len));
25: }
26: }
|