org.infinispan.protostream.impl.ByteArrayOutputStreamEx Maven / Gradle / Ivy
package org.infinispan.protostream.impl;
import java.io.ByteArrayOutputStream;
import java.nio.ByteBuffer;
/**
* @author [email protected]
* @since 4.0
*/
public final class ByteArrayOutputStreamEx extends ByteArrayOutputStream {
public ByteArrayOutputStreamEx() {
}
public ByteArrayOutputStreamEx(int size) {
super(size);
}
public ByteBuffer getByteBuffer() {
return ByteBuffer.wrap(buf, 0, count);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy