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 classInputHelper.FilterFactory.FilterFactoryExceptionThrown if there is a problem creating or using the newInputStream(e.g., thrown if the user attempts to use aCBZip2InputStreamon data that is not compressed in bzip2 format). -
Method Summary
Modifier and Type Method Description java.io.InputStreammakeFilter(java.io.InputStream in)Surrounds theInputStreamwith another filter-likeInputStream.
-
Method Details
-
makeFilter
java.io.InputStream makeFilter(java.io.InputStream in) throws InputHelper.FilterFactory.FilterFactoryExceptionSurrounds theInputStreamwith another filter-likeInputStream. Typically used to surround aFileInputStreamwith anInputStream(such asCBZip2InputStream) that can uncompress files.- Parameters:
in- the baseInputStream- Returns:
- the new
InputStreamsurroundingin - Throws:
InputHelper.FilterFactory.FilterFactoryException- if there is a problem creating or using the newInputStream
-