public static class ClassicMp4ContainerSource.TeeInputStream
extends java.io.FilterInputStream
| Constructor | Description |
|---|---|
TeeInputStream(java.io.InputStream input,
java.io.OutputStream branch) |
Creates a TeeInputStream that proxies the given
InputStream
and copies all read bytes to the given OutputStream. |
| Modifier and Type | Method | 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.
|
public TeeInputStream(java.io.InputStream input,
java.io.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 java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOException - if the stream could not be read (or written)public int read(byte[] bts,
int st,
int end)
throws java.io.IOException
read in class java.io.FilterInputStreambts - byte bufferst - start offset within the bufferend - maximum number of bytes to readjava.io.IOException - if the stream could not be read (or written)public int read(byte[] bts)
throws java.io.IOException
read in class java.io.FilterInputStreambts - byte bufferjava.io.IOException - if the stream could not be read (or written)Copyright © 2018. All rights reserved.