org.jboss.ejb.client.remoting.NoFlushDataOutputStream Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote Jakarta Enterprise Beans and Jakarta Messaging, including
all dependencies. It is intended for use by those not using maven, maven users should just import the Jakarta Enterprise Beans and
Jakarta Messaging BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
package org.jboss.ejb.client.remoting;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/**
* Extended version of DataOutputStream that does not flush before close
*
* @author Stuart Douglas
*/
class NoFlushDataOutputStream extends DataOutputStream {
/**
* Creates a new data output stream to write data to the specified
* underlying output stream. The counter written
is
* set to zero.
*
* @param out the underlying output stream, to be saved for later
* use.
* @see java.io.FilterOutputStream#out
*/
public NoFlushDataOutputStream(OutputStream out) {
super(out);
}
@Override
public void close() throws IOException {
this.out.close();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy