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 java.lang.Object implements JavaPath.FileWrapper
Represents an ordinary filefileon a file system.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Filefile
-
Constructor Summary
Constructors Constructor Description OrdFileWrapper(java.io.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.java.io.FilegetFile()Returns the file wrapped.java.io.InputStreamgetInputStream()Returns an input stream for the file wrapped.
-
-
-
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 java.io.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 java.io.InputStream getInputStream() throws java.io.IOExceptionDescription copied from interface:JavaPath.FileWrapperReturns an input stream for the file wrapped.- Specified by:
getInputStreamin interfaceJavaPath.FileWrapper- Returns:
- the
InputStreamof the file wrapped. - Throws:
java.io.IOException- if an error occurs
-
-