SequenceInputStream (Java SE 25 & JDK 25)
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Constructor Summary
Constructors
Initializes a newly created
SequenceInputStreamby remembering the two arguments, which will be read in order, firsts1and thens2, to provide the bytes to be read from thisSequenceInputStream.Initializes a newly created
SequenceInputStreamby remembering the argument, which must be anEnumerationthat produces objects whose run-time type isInputStream. -
Method Summary
intReturns 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.
voidclose()Closes this input stream and releases any system resources associated with the stream.
intread()Reads the next byte of data from the input stream.
intread(byte[] b, int off, int len) Reads up to
lenbytes of data from this input stream into an array of bytes.Methods declared in class InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
SequenceInputStream
-
SequenceInputStream
-
-
Method Details
-
available
-
read
-
read
-
close
-