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 net.lightbody.bmp.proxy.jetty.http.nio.SocketChannelOutputStream.java

/** 
 * Blocking output stream on non-blocking SocketChannel.  Makes the 
 * assumption that writes will rarely need to block.
 * All writes flush to the channel, and no additional buffering is done.
 * @version $Revision: 1.4 $
 * @author gregw

From source file org.openflamingo.core.cmd.ByteArrayOutputStream.java

/**
 * Byte Array Output Stream.
 *
 * @author Edward KIM
 * @since 0.1
 */

From source file org.apache.hadoop.fs.swift.snative.SwiftNativeOutputStream.java

/**
 * Output stream, buffers data on local disk.
 * Writes to Swift on close() method
 */
class SwiftNativeOutputStream extends OutputStream {
    private long filePartSize = 4768709000L; // files greater than 4.5Gb are divided into parts

From source file io.milton.common.BufferingOutputStream.java

/**
 * An output stream which will buffer data, initially using memory up to
 * maxMemorySize, and then overflowing to a temporary file.
 *
 * To use this class you will write to it, and then close it, and then
 * call getInputStream to read the data.

From source file hudson.util.io.RewindableFileOutputStream.java

/**
 * {@link OutputStream} that writes to a file.
 * <p>
 * Allows the caller to rewind the stream and override previous content with fresh new data.
 * @since 2.18
 */

From source file com.norconex.commons.lang.io.ByteArrayOutputStream.java

/**
 * <p>This class is an alternate version of
 * Java {@link ByteArrayInputStream}. This code is derived from the 
 * Apache {@link org.apache.commons.io.output.ByteArrayOutputStream}.
 * Like the Apache version, this class creates new byte arrays as it grows
 * without copying them into a larger one (for better performance).  

From source file com.blackducksoftware.integration.hub.ScannerSplitStream.java

public class ScannerSplitStream extends OutputStream {
    // https://www.cs.cmu.edu/~pattis/15-1XX/common/handouts/ascii.html
    private static final int EOF = -1; // End of file

    private static final int ETX = 3; // End of text, should have no more data

From source file org.codehaus.plexus.archiver.zip.ByteArrayOutputStream.java

/**
 * This class implements an output stream in which the data is
 * written into a byte array. The buffer automatically grows as data
 * is written to it.
 * <p>
 * The data can be retrieved using <code>toByteArray()</code> and

From source file org.openqa.jetty.util.ByteBufferOutputStream.java

/** ByteBuffer OutputStream.
 * This stream is similar to the java.io.ByteArrayOutputStream,
 * except that it maintains a reserve of bytes at the start of the
 * buffer and allows efficient prepending of data.
 *
 * @version $Revision: 1.18 $

From source file com.joyent.manta.client.MantaObjectOutputStream.java

/**
 * {@link OutputStream} that wraps the PUT operations using an {@link java.io.InputStream}
 * as a data source. This implementation uses another thread to keep the Apache HTTP
 * Client's {@link OutputStream} open in order to proxy all calls to it. This is far
 * from an ideal implementation. Please only use this class as a last resort when needing
 * to provide compatibility with inflexible APIs that require an {@link OutputStream}.