Class FileInput
java.lang.Object
org.aksw.vshell.registry.InputBase
org.aksw.vshell.registry.FileInput
- All Implemented Interfaces:
Closeable, AutoCloseable, DynamicInput, Input
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFileInput(Path path, InputStream inputStream) InputStream will be owned (and closed) by this instance. -
Method Summary
Methods inherited from class InputBase
close, getReaderCharset, hasReader, inputStream, reader, reader, transferToMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Input
getReaderCharset, hasReader, inputStream, reader, reader, transferTo
-
Constructor Details
-
FileInput
InputStream will be owned (and closed) by this instance.
-
-
Method Details
-
hasFile
public boolean hasFile()- Specified by:
hasFilein interfaceDynamicInput
-
getFile
Description copied from interface:DynamicInputReturn a file (typically a pipe). Calling this function may be create the pipe on-demand, hence the IOException. UseDynamicInput.hasFile()to check for file backing without on-demand creation.- Specified by:
getFilein interfaceDynamicInput
-
openInputStream
- Specified by:
openInputStreamin classInputBase- Throws:
IOException
-
of
-
of
-
of
-
getPath
-