java.lang.Object
java.io.InputStream
org.refcodes.codec.BaseDecoderInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
InputStream
decoding data being read.-
Constructor Summary
ConstructorDescriptionBaseDecoderInputStream
(File aInputFile, BaseMetrics aBaseMetrics) Constructs aBaseDecoderInputStream
using the givenFile
from which to read encoded data and using theBaseMetrics
to decode the data.BaseDecoderInputStream
(InputStream aInputStream, BaseMetrics aBaseMetrics) Constructs aBaseDecoderInputStream
using the givenInputStream
from which to read encoded data and using theBaseMetrics
to decode the data.BaseDecoderInputStream
(InputStream aInputStream, BaseMetrics aBaseMetrics, boolean isFilterWhiteSpaces) Constructs aBaseDecoderInputStream
using the givenInputStream
from which to read encoded data and using theBaseMetrics
to decode the data. -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
BaseDecoderInputStream
public BaseDecoderInputStream(InputStream aInputStream, BaseMetrics aBaseMetrics) throws IOException Constructs aBaseDecoderInputStream
using the givenInputStream
from which to read encoded data and using theBaseMetrics
to decode the data.- Parameters:
aInputStream
- TheInputStream
from which to read encoded data.aBaseMetrics
- TheBaseMetrics
to use to decode the encoded data.- Throws:
IOException
- throw in case using theInputStream
caused I/O related problems.
-
BaseDecoderInputStream
public BaseDecoderInputStream(InputStream aInputStream, BaseMetrics aBaseMetrics, boolean isFilterWhiteSpaces) throws IOException Constructs aBaseDecoderInputStream
using the givenInputStream
from which to read encoded data and using theBaseMetrics
to decode the data.- Parameters:
aInputStream
- TheInputStream
from which to read encoded data.aBaseMetrics
- TheBaseMetrics
to use to decode the encoded data.isFilterWhiteSpaces
- When true, then all white spaces not found in theBaseMetrics.getCharSet()
are filtered from theInputStream
.- Throws:
IOException
- throw in case using theInputStream
caused I/O related problems.
-
BaseDecoderInputStream
Constructs aBaseDecoderInputStream
using the givenFile
from which to read encoded data and using theBaseMetrics
to decode the data.- Parameters:
aInputFile
- TheFile
from which to read encoded data.aBaseMetrics
- TheBaseMetrics
to use to decode the encoded data.- Throws:
IOException
- throw in case using theInputStream
caused I/O related problems.
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-