Example usage for java.io OutputStream subclass-usage

List of usage examples for java.io OutputStream subclass-usage

Introduction

In this page you can find the example usage for java.io OutputStream subclass-usage.

Usage

From source file ByteCountingOutputStream.java

/**
 * Output stream that counts bytes written to it (but discards them).
 * 
 * @author Jonathan Locke
 */
public final class ByteCountingOutputStream extends OutputStream {

From source file FastByteArrayOutputStream.java

public class FastByteArrayOutputStream extends OutputStream {
    /**
     * Buffer and size
     */
    protected byte[] buf = null;
    protected int size = 0;

From source file CountOutputStream.java

/**
 * This class can be used to count number of bytes emitted to a stream. The
 * stream will actually throw the data away. It's main function is to count the
 * number of bytes emitted to a stream before actually emitting the bytes
 * (that's not really efficient, but works enough).
 */

From source file at.beris.virtualfile.client.ftp.FtpOutputStream.java

public class FtpOutputStream extends OutputStream {
    private OutputStream outputStream;
    private FTPClient ftpClient;

    public FtpOutputStream(OutputStream outputStream, FTPClient ftpClient) {
        this.outputStream = outputStream;

From source file com.joyent.manta.util.HmacOutputStream.java

/**
 * {@link OutputStream} implementation that progressively updates a
 * HMAC as data is written.
 *
 * @author <a href="https://github.com/dekobon">Elijah Zupancic</a>
 * @since 3.0.0

From source file org.mule.model.streaming.CallbackOutputStream.java

public class CallbackOutputStream extends OutputStream {
    private static final Log logger = LogFactory.getLog(CallbackOutputStream.class);

    public static interface Callback {
        public void onClose() throws Exception;
    }

From source file com.clustercontrol.util.LoggerStream.java

public class LoggerStream extends OutputStream {
    private final Log log;

    public LoggerStream(Log log) {
        super();

From source file alluxio.client.AbstractOutStream.java

/**
 * An abstraction of the output stream API in Alluxio to write data to a file or a block. In
 * addition to extending abstract class {@link OutputStream} as the basics, it also keeps counting
 * the number of bytes written to the output stream, and extends {@link Cancelable} to abort the
 * writes.
 */

From source file edu.cornell.mannlib.vitro.webapp.controller.datatools.dumprestore.JsonToNquads.java

/**
 * An output stream decorator that converts a stream of
 * application/sparql-results+json to a stream of application/n-quads
 * 
 * This could be a lot more efficient.
 */

From source file com.gc.iotools.stream.os.TeeOutputStream.java

/**
 * <p>
 * Copies the data that is written to this class to the array of
 * <code>OutputStream</code> passed in the constructor, allowing to write to
 * multiple <code>OutputStream</code> at once. It also collect statistics on the
 * operations done (time spent writing to the internal streams, amount of data