public class ExplodedImporterImpl extends AssignableBase<Archive<?>> implements ExplodedImporter
Archive
Modifier and Type | Field and Description |
---|---|
private static java.util.logging.Logger |
log
Logger
|
Constructor and Description |
---|
ExplodedImporterImpl(Archive<?> archive) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
a() |
private ArchivePath |
calculatePath(java.io.File root,
java.io.File child)
Calculate the relative child path.
|
private void |
doImport(java.io.File root,
java.io.File[] files,
Filter<ArchivePath> filter) |
ExplodedImporter |
importDirectory(java.io.File file)
Import a directory structure as a archive.
|
ExplodedImporter |
importDirectory(java.io.File file,
Filter<ArchivePath> filter)
Import a directory structure as a archive.
|
ExplodedImporter |
importDirectory(java.lang.String fileName)
Import a directory structure as a archive.
|
ExplodedImporter |
importDirectory(java.lang.String fileName,
Filter<ArchivePath> filter)
Import a directory structure as a archive.
|
private java.lang.String |
unifyPath(java.lang.String path)
Windows vs Linux will return different path separators, unify the paths.
|
as, getArchive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
as
public ExplodedImporterImpl(Archive<?> archive)
void a()
public ExplodedImporter importDirectory(java.lang.String fileName)
importDirectory
in interface ExplodedImporter
fileName
- The name of the directory to importExplodedImporter.importDirectory(java.lang.String)
public ExplodedImporter importDirectory(java.lang.String fileName, Filter<ArchivePath> filter)
importDirectory
in interface ExplodedImporter
fileName
- The name of the directory to importfilter
- The filter control which files or directories will be importedExplodedImporter.importDirectory(java.lang.String, org.jboss.shrinkwrap.api.Filter)
public ExplodedImporter importDirectory(java.io.File file)
importDirectory
in interface ExplodedImporter
file
- The directory to importExplodedImporter.importDirectory(java.io.File)
public ExplodedImporter importDirectory(java.io.File file, Filter<ArchivePath> filter)
importDirectory
in interface ExplodedImporter
file
- The directory to importfilter
- The filter control which files or directories will be importedExplodedImporter.importDirectory(java.io.File, org.jboss.shrinkwrap.api.Filter)
private void doImport(java.io.File root, java.io.File[] files, Filter<ArchivePath> filter)
private ArchivePath calculatePath(java.io.File root, java.io.File child)
root
- The Archive root folderchild
- The Child fileprivate java.lang.String unifyPath(java.lang.String path)