java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.aoapps.hodgepodge.io.BitRateOutputStream
- All Implemented Interfaces:
NoClose
,Closeable
,Flushable
,AutoCloseable
A
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 externally.- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
MAX_CATCHUP_TIME
public static final long MAX_CATCHUP_TIME- See Also:
-
-
Constructor Details
-
BitRateOutputStream
-
-
Method Details
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classFilterOutputStream
- Throws:
IOException
-
isNoClose
public boolean isNoClose() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceNoClose
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-