All Implemented Interfaces:
Closeable, AutoCloseable

  • Constructor Summary

    Constructors

    Initializes a newly created SequenceInputStream by remembering the two arguments, which will be read in order, first s1 and then s2, to provide the bytes to be read from this SequenceInputStream.

    Initializes a newly created SequenceInputStream by remembering the argument, which must be an Enumeration that produces objects whose run-time type is InputStream.

  • Method Summary

    int

    available()

    Returns an estimate of the number of bytes that can be read (or skipped over) from the current underlying input stream without blocking by the next invocation of a method for the current underlying input stream.

    void

    close()

    Closes this input stream and releases any system resources associated with the stream.

    int

    read()

    Reads the next byte of data from the input stream.

    int

    read(byte[] b, int off, int len)

    Reads up to len bytes of data from this input stream into an array of bytes.

  • Constructor Details

    • SequenceInputStream

    • SequenceInputStream

  • Method Details

    • available

    • read

    • read

    • close