0
|
1 /**
|
|
2 * Authors: Frank Benoit <keinfarbton@googlemail.com>
|
|
3 */
|
|
4 module dwt.dwthelper.ByteArrayOutputStream;
|
|
5
|
|
6 public import dwt.dwthelper.OutputStream;
|
|
7 import dwt.dwthelper.utils;
|
|
8
|
|
9 public class ByteArrayOutputStream : dwt.dwthelper.OutputStream.OutputStream {
|
|
10
|
|
11 alias dwt.dwthelper.OutputStream.OutputStream.write write;
|
|
12
|
|
13 protected byte[] buf;
|
|
14 protected int count;
|
|
15 public this (){
|
|
16 }
|
|
17
|
|
18 public this ( int par_size ){
|
|
19 }
|
|
20
|
|
21 public synchronized void write( int b ){
|
|
22 implMissing( __FILE__, __LINE__ );
|
|
23 }
|
|
24
|
|
25 public synchronized void write( byte[] b, int off, int len ){
|
|
26 implMissing( __FILE__, __LINE__ );
|
|
27 }
|
|
28
|
|
29 public synchronized void writeTo( dwt.dwthelper.OutputStream.OutputStream out_KEYWORDESCAPE ){
|
|
30 implMissing( __FILE__, __LINE__ );
|
|
31 }
|
|
32
|
|
33 public synchronized void reset(){
|
|
34 implMissing( __FILE__, __LINE__ );
|
|
35 }
|
|
36
|
|
37 public synchronized byte[] toByteArray(){
|
|
38 implMissing( __FILE__, __LINE__ );
|
|
39 return null;
|
|
40 }
|
|
41
|
|
42 public int size(){
|
|
43 implMissing( __FILE__, __LINE__ );
|
|
44 return 0;
|
|
45 }
|
|
46
|
|
47 public override char[] toString(){
|
|
48 implMissing( __FILE__, __LINE__ );
|
|
49 return null;
|
|
50 }
|
|
51
|
|
52 public char[] toString( char[] enc ){
|
|
53 implMissing( __FILE__, __LINE__ );
|
|
54 return null;
|
|
55 }
|
|
56
|
|
57 public char[] toString( int hibyte ){
|
|
58 implMissing( __FILE__, __LINE__ );
|
|
59 return null;
|
|
60 }
|
|
61
|
|
62 public override void close(){
|
|
63 implMissing( __FILE__, __LINE__ );
|
|
64 }
|
|
65
|
|
66
|
|
67 }
|
|
68
|
|
69
|