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 BitRateOutputStream extends FilterOutputStream
BitRateOutputStream regulates an
OutputStream 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 |
out| Constructor and Description |
|---|
BitRateOutputStream(OutputStream out,
BitRateProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public static final long MAX_CATCHUP_TIME
public BitRateOutputStream(OutputStream out, BitRateProvider provider)
public void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2000–2016 AO Industries, Inc.. All rights reserved.