Package eu.simuline.util
Interface JavaPath.FileWrapper
-
- All Known Implementing Classes:
JavaPath.OrdFileWrapper,JavaPath.ZipEntryWrapper
- Enclosing class:
- JavaPath
static interface JavaPath.FileWrapperWrapps a file directly found within a directory or within a zip-archive which also includes jar-archives. Accordingly, there are two implementations,JavaPath.OrdFileWrapperandJavaPath.ZipEntryWrapper.
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean coversZip()
Returns whether the wrapped file is within a zip-archive. If this is the case, the file wrapped was created newly.- Returns:
- a
booleanvalue signifying whether the wrapped file is within a zip-archive.
-
getFile
java.io.File getFile() throws java.io.IOExceptionReturns the file wrapped. If the wrapped file is within a zip-archive, it was created newly by thisFileWrapper.- Returns:
- the
Filewrapped. - Throws:
java.io.IOException- if an error occurs
-
getInputStream
java.io.InputStream getInputStream() throws java.io.IOExceptionReturns an input stream for the file wrapped.- Returns:
- the
InputStreamof the file wrapped. - Throws:
java.io.IOException- if an error occurs
-
-