public static class ClassicMp4ContainerSource.TeeInputStream extends FilterInputStream
in| Constructor and Description |
|---|
TeeInputStream(InputStream input,
OutputStream branch)
Creates a TeeInputStream that proxies the given
InputStream
and copies all read bytes to the given OutputStream. |
| Modifier and Type | Method and Description |
|---|---|
int |
read()
Reads a single byte from the proxied input stream and writes it to
the associated output stream.
|
int |
read(byte[] bts)
Reads bytes from the proxied input stream and writes the read bytes
to the associated output stream.
|
int |
read(byte[] bts,
int st,
int end)
Reads bytes from the proxied input stream and writes the read bytes
to the associated output stream.
|
available, close, mark, markSupported, reset, skippublic TeeInputStream(InputStream input, OutputStream branch)
InputStream
and copies all read bytes to the given OutputStream. The given
output stream will not be closed when this stream gets closed.input - input stream to be proxiedbranch - output stream that will receive a copy of all bytes readpublic int read()
throws IOException
read in class FilterInputStreamIOException - if the stream could not be read (or written)public int read(byte[] bts,
int st,
int end)
throws IOException
read in class FilterInputStreambts - byte bufferst - start offset within the bufferend - maximum number of bytes to readIOException - if the stream could not be read (or written)public int read(byte[] bts)
throws IOException
read in class FilterInputStreambts - byte bufferIOException - if the stream could not be read (or written)Copyright © 2019. All rights reserved.