java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.aoapps.hodgepodge.io.BitRateInputStream
- All Implemented Interfaces:
NoClose
,Closeable
,AutoCloseable
A
BitRateInputStream
regulates an
Does not count bytes skipped toward bit rate.
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 externally.- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
Field Details
-
MAX_CATCHUP_TIME
public static final long MAX_CATCHUP_TIME- See Also:
-
-
Constructor Details
-
BitRateInputStream
-
-
Method Details
-
isNoClose
public boolean isNoClose() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceNoClose
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-