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)booleanisEmpty(URI uri)InputStreamopenInputStream(URI uri)OutputStreamopenOutputStream(URI uri)
-
-
-
Method Detail
-
openInputStream
public InputStream openInputStream(URI uri) throws IOException
- Specified by:
openInputStreamin interfaceStreamFactory- Throws:
IOException
-
openOutputStream
public OutputStream openOutputStream(URI uri) throws IOException
- Specified by:
openOutputStreamin interfaceStreamFactory- Throws:
IOException
-
exists
public boolean exists(URI uri)
- Specified by:
existsin interfaceStreamFactory
-
isEmpty
public boolean isEmpty(URI uri)
- Specified by:
isEmptyin interfaceStreamFactory
-
-