public class BitRateInputStream extends FilterInputStream
BitRateInputStream regulates an
InputStream to a specific bit rate.
Please note that this class is not synchronized
so it should only be used from a single Thread
or should be synchronized enternally.| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_CATCHUP_TIME |
in| Constructor and Description |
|---|
BitRateInputStream(InputStream out,
BitRateProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] buff) |
int |
read(byte[] buff,
int off,
int len) |
available, mark, markSupported, reset, skippublic static final long MAX_CATCHUP_TIME
public BitRateInputStream(InputStream out, BitRateProvider provider)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] buff)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] buff,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionCopyright © 2016. All rights reserved.