com.wavefront.agent.queueing.DirectByteArrayOutputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy-test Show documentation
Show all versions of proxy-test Show documentation
Service for batching and relaying metric traffic to Wavefront
package com.wavefront.agent.queueing;
import java.io.ByteArrayOutputStream;
/**
* Enables direct access to the internal array. Avoids unnecessary copying.
*/
public final class DirectByteArrayOutputStream extends ByteArrayOutputStream {
/**
* Gets a reference to the internal byte array. The {@link #size()} method indicates how many
* bytes contain actual data added since the last {@link #reset()} call.
*/
byte[] getArray() {
return buf;
}
}