Example usage for java.io InputStream subclass-usage

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

Introduction

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

Usage

From source file ImportStream.java

/** Wraps a stream that has been exported to import the data in readable form */
public class ImportStream extends java.io.InputStream {
    private java.io.InputStream theInput;

    /**
     * Wraps a stream with an import stream

From source file com.company.tests.webdav.util.RandomInputStream.java

/**
 * Originally written by Elliotte Rusty Harold for the book Java I/O 2nd
 * edition.
 * 
 * @author subwiz
 * @author rschwietzke

From source file HttpResponseBackedInputStream.java

/**
 * An InputStream backed by an HTTP response provided by Apache HttpClient. When this InputStream is closed, 
 * steps are implicitly taken to safely and properly close/manage the source HTTP connection.
 * 
 * Instances of this class are intended to be used as the return value from calls to a custom-coded class (not 
 * provided) used to wrap HttpClient. These calls would return content only, as opposed to the full HTTP response object. 

From source file org.mule.transport.tcp.protocols.SlowInputStream.java

/**
 * Returns data one byte at a time.  By default the data are a 4 byte integer, value 1, and
 * a single byte value -1.
 */
public class SlowInputStream extends InputStream {

From source file net.bible.service.format.OSISInputStream.java

/** Read through the raw OSIS input from a bible, add verse tags if required, remove any extra div tags,
 * and pipe back as in InputStream ready to be fed to the SAXParser for html formatting.
 * This is more efficient than using JDom to create a DOM and then streaming teh DOM into a SAX parser  
 * 
 * @author Martin Denham [mjdenham at gmail dot com]
 * @see gnu.lgpl.License for license details.

From source file org.duracloud.stitch.stream.MultiContentInputStream.java

/**
 * This class exposes a single InputStream composed of the sequence of content
 * streams read on-demand from the provided list of ContentItems.
 *
 * @author Andrew Woods
 * Date: 9/8/11

From source file com.bellman.bible.service.format.OSISInputStream.java

/** Read through the raw OSIS input from a bible, add verse tags if required, remove any extra div tags,
 * and pipe back as in InputStream ready to be fed to the SAXParser for html formatting.
 * This is more efficient than using JDom to create a DOM and then streaming the DOM into a SAX parser  
 * 
 * @author Martin Denham [mjdenham at gmail dot com]
 * @see gnu.lgpl.License for license details.

From source file org.mule.transport.tcp.integration.BigInputStream.java

public class BigInputStream extends InputStream {

    private static final int SUMMARY_SIZE = 4;
    private static final MessageFormat FORMAT = new MessageFormat(
            "Sent {0,number,#} bytes, {1,number,###.##}% (free {2,number,#}/{3,number,#})");
    private final Log logger = LogFactory.getLog(getClass());

From source file fedora.localservices.saxon.HttpInputStream.java

/**
 * An InputStream from an HttpMethod. When this InputStream is close()d, the
 * underlying http connection is automatically released.
 */
public class HttpInputStream extends InputStream {

From source file org.mule.module.pgp.LazyTransformedInputStream.java

/**
 * A {@link LazyTransformedInputStream} represents an {@link InputStream} that
 * has been transformed when someone needs to read from it.
 * 
 * Internally, the {@link LazyTransformedInputStream} has a pipe that is written by an
 * {@link StreamTransformer} according to a {@link TransformPolicy}.