Quadcap Embeddable Server

com/quadcap/io/MutableByteArrayInputStream.java

Go to the documentation of this file.
00001 package com.quadcap.io; 00002 00003 /* 00004 * Copyright 1997 by Stan Bailes and quadcap Software. 00005 * 00006 **/ 00007 00008 import java.io.ByteArrayInputStream; 00009 00010 /** 00011 * 00012 * 00013 * @author Stan Bailes 00014 */ 00015 public class MutableByteArrayInputStream extends ByteArrayInputStream { 00016 public MutableByteArrayInputStream() { 00017 super(new byte[0]); 00018 } 00019 00020 public MutableByteArrayInputStream(byte[] buf) { 00021 super(buf); 00022 } 00023 00024 public void reset(byte[] buf) { 00025 this.buf = buf; 00026 this.pos = 0; 00027 this.count = buf.length; 00028 } 00029 }