Package edu.gvsu.kurmasz.warszawa.io
Interface InputHelper.FilterFactory
- Enclosing class:
- InputHelper
public static interface InputHelper.FilterFactory
Used to wrap
InputStreams
with the desired filter.-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
InputHelper.FilterFactory.FilterFactoryException
Thrown if there is a problem creating or using the newInputStream
(e.g., thrown if the user attempts to use aCBZip2InputStream
on data that is not compressed in bzip2 format). -
Method Summary
Modifier and Type Method Description java.io.InputStream
makeFilter(java.io.InputStream in)
Surrounds theInputStream
with another filter-likeInputStream
.
-
Method Details
-
makeFilter
java.io.InputStream makeFilter(java.io.InputStream in) throws InputHelper.FilterFactory.FilterFactoryExceptionSurrounds theInputStream
with another filter-likeInputStream
. Typically used to surround aFileInputStream
with anInputStream
(such asCBZip2InputStream
) that can uncompress files.- Parameters:
in
- the baseInputStream
- Returns:
- the new
InputStream
surroundingin
- Throws:
InputHelper.FilterFactory.FilterFactoryException
- if there is a problem creating or using the newInputStream
-