class ByteArrayInputStreamWithPos extends InputStream {

	public void setBuffer(byte[] buffer, int offset, int length) {
		this.count = Math.min(buffer.length, offset + length);
		setPosition(offset);
		this.buffer = buffer;
		this.mark = offset;
	}

	public  ByteArrayInputStreamWithPos();
	public  ByteArrayInputStreamWithPos(byte[] buffer);
	public  ByteArrayInputStreamWithPos(byte[] buffer, int offset, int length);

}