KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quadcap > io > MutableByteArrayInputStream


1 package com.quadcap.io;
2
3 /*
4  * Copyright 1997 by Stan Bailes and quadcap Software.
5  *
6  **/

7
8 import java.io.ByteArrayInputStream JavaDoc;
9
10 /**
11  *
12  *
13  * @author Stan Bailes
14  */

15 public class MutableByteArrayInputStream extends ByteArrayInputStream JavaDoc {
16     public MutableByteArrayInputStream() {
17         super(new byte[0]);
18     }
19     
20     public MutableByteArrayInputStream(byte[] buf) {
21         super(buf);
22     }
23
24     public void reset(byte[] buf) {
25         this.buf = buf;
26         this.pos = 0;
27         this.count = buf.length;
28     }
29 }
30
Popular Tags