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 © 2016. All rights reserved.