All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webpieces.httpparser.impl.ByteArrayOutStream Maven / Gradle / Ivy

There is a newer version: 1.9.35
Show newest version
package org.webpieces.httpparser.impl;

import java.io.IOException;
import java.io.OutputStream;

public class ByteArrayOutStream extends OutputStream {

	private byte[] data;
	private int index = 0;

	public ByteArrayOutStream(byte[] data) {
		this.data = data;
	}
	
	@Override
	public void write(int b) throws IOException {
		data[index] = (byte) b;
	}

	@Override
	public void write(byte[] b) throws IOException {
		super.write(b);
	}

	@Override
	public void write(byte[] b, int off, int len) throws IOException {
		super.write(b, off, len);
	}
	
	

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy