Package com.yworks.util.abstractjar.impl
Class DirectoryWrapper
- java.lang.Object
-
- java.nio.file.SimpleFileVisitor<java.nio.file.Path>
-
- com.yworks.util.abstractjar.impl.DirectoryWrapper
-
-
Constructor Summary
Constructors Constructor Description DirectoryWrapper(java.io.File directory)Instantiates a new Directory wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close.java.util.Enumeration<Entry>getEntries()Gets entries.java.io.InputStreamgetInputStream(Entry entry)Gets input stream.java.util.jar.ManifestgetManifest()Gets manifest.java.lang.StringgetName()Gets name.java.nio.file.FileVisitResultvisitFile(java.nio.file.Path path, java.nio.file.attribute.BasicFileAttributes attrs)
-
-
-
Method Detail
-
visitFile
public java.nio.file.FileVisitResult visitFile(java.nio.file.Path path, java.nio.file.attribute.BasicFileAttributes attrs) throws java.io.IOException- Specified by:
visitFilein interfacejava.nio.file.FileVisitor<java.nio.file.Path>- Overrides:
visitFilein classjava.nio.file.SimpleFileVisitor<java.nio.file.Path>- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
Description copied from interface:ArchiveGets name.
-
getEntries
public java.util.Enumeration<Entry> getEntries()
Description copied from interface:ArchiveGets entries.- Specified by:
getEntriesin interfaceArchive- Returns:
- the entries
-
getManifest
public java.util.jar.Manifest getManifest() throws java.io.IOExceptionDescription copied from interface:ArchiveGets manifest.- Specified by:
getManifestin interfaceArchive- Returns:
- the manifest
- Throws:
java.io.IOException- the io exception
-
getInputStream
public java.io.InputStream getInputStream(Entry entry) throws java.io.IOException
Description copied from interface:ArchiveGets input stream.- Specified by:
getInputStreamin interfaceArchive- Parameters:
entry- the entry- Returns:
- the input stream
- Throws:
java.io.IOException- the io exception
-
-