Package eu.simuline.util
Class JavaPath.OrdFileWrapper
- java.lang.Object
-
- eu.simuline.util.JavaPath.OrdFileWrapper
-
- All Implemented Interfaces:
JavaPath.FileWrapper
- Enclosing class:
- JavaPath
static class JavaPath.OrdFileWrapper extends Object implements JavaPath.FileWrapper
Represents an ordinary filefileon a file system.
-
-
Constructor Summary
Constructors Constructor Description OrdFileWrapper(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancoversZip()Returns whether the wrapped file is within a zip-archive.FilegetFile()Returns the file wrapped.InputStreamgetInputStream()Returns an input stream for the file wrapped.
-
-
-
Field Detail
-
file
private final File file
-
-
Constructor Detail
-
OrdFileWrapper
OrdFileWrapper(File file)
-
-
Method Detail
-
coversZip
public boolean coversZip()
Description copied from interface:JavaPath.FileWrapperReturns whether the wrapped file is within a zip-archive. If this is the case, the file wrapped was created newly.- Specified by:
coversZipin interfaceJavaPath.FileWrapper- Returns:
- a
booleanvalue signifying whether the wrapped file is within a zip-archive.
-
getFile
public File getFile()
Description copied from interface:JavaPath.FileWrapperReturns the file wrapped. If the wrapped file is within a zip-archive, it was created newly by thisFileWrapper.- Specified by:
getFilein interfaceJavaPath.FileWrapper- Returns:
- the
Filewrapped.
-
getInputStream
public InputStream getInputStream() throws IOException
Description copied from interface:JavaPath.FileWrapperReturns an input stream for the file wrapped.- Specified by:
getInputStreamin interfaceJavaPath.FileWrapper- Returns:
- the
InputStreamof the file wrapped. - Throws:
IOException- if an error occurs
-
-