1 5 package com.teamkonzept.web; 6 7 import java.io.*; 8 9 public abstract class TKPseudoOutputStream extends OutputStream { 10 11 public abstract void write( String s ); 12 13 public void write( int b ) 14 { 15 char c = (char) b; 16 write( new Character ( c ).toString() ); 17 18 } 19 20 public void write( byte[] b ) 21 { 22 write( new String ( b, 0 ) ); 23 } 24 25 public void write( byte[] b, int off, int len ) 26 { 27 write( new String ( b, 0, off, len ) ); 28 } 29 } 30 31 | Popular Tags |