Package com.github.euler.file
Class FileStreamFactory
- java.lang.Object
-
- com.github.euler.file.FileStreamFactory
-
- All Implemented Interfaces:
StreamFactory
public class FileStreamFactory extends Object implements StreamFactory
-
-
Constructor Summary
Constructors Constructor Description FileStreamFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(URI uri, ProcessingContext ctx)booleanisEmpty(URI uri, ProcessingContext ctx)InputStreamopenInputStream(URI uri, ProcessingContext ctx)OutputStreamopenOutputStream(URI uri, ProcessingContext ctx)
-
-
-
Method Detail
-
openInputStream
public InputStream openInputStream(URI uri, ProcessingContext ctx) throws IOException
- Specified by:
openInputStreamin interfaceStreamFactory- Throws:
IOException
-
openOutputStream
public OutputStream openOutputStream(URI uri, ProcessingContext ctx) throws IOException
- Specified by:
openOutputStreamin interfaceStreamFactory- Throws:
IOException
-
exists
public boolean exists(URI uri, ProcessingContext ctx)
- Specified by:
existsin interfaceStreamFactory
-
isEmpty
public boolean isEmpty(URI uri, ProcessingContext ctx)
- Specified by:
isEmptyin interfaceStreamFactory
-
-