use of com.swiftmq.impl.net.netty.CountableWrappedOutputStream in project swiftmq-ce by iitsoftware.
the class IntraVMServerEndpointImpl method init.
private void init() {
dis = new DataByteArrayInputStream();
in = new CountableBufferedInputStream(dis);
dos = new DataByteArrayOutputStream() {
public void flush() throws IOException {
if (isClosed() || clientConnection.isClosed())
throw new IOException("Connection is closed");
super.flush();
clientConnection.chunkCompleted(getBuffer(), 0, getCount());
rewind();
}
};
out = new CountableWrappedOutputStream(dos);
}
Aggregations