Package ej.audio.util
Class G711InputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
ej.audio.util.G711InputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An InputStream that does G711 decoding on the data read through it.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionG711InputStream(InputStream in, int algorithm) An InputStream that performs G711 decoding on the data read from the wrapped stream. -
Method Summary
Methods inherited from class java.io.FilterInputStream
readMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
G711InputStream
An InputStream that performs G711 decoding on the data read from the wrapped stream.- Parameters:
in- the InputStream to read the source data fromalgorithm- encoding algorithm 0: uLaw, 1: aLaw.
-
-
Method Details
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-
mark
public void mark(int readlimit) - Overrides:
markin classFilterInputStream
-
reset
public void reset()- Overrides:
resetin classFilterInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
available
public int available()- Overrides:
availablein classFilterInputStream
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-