Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
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 © 2000–2016 AO Industries, Inc.. All rights reserved.