public class BasicFileExtractor extends Object implements FileExtractor
FileExtractorOperation
s.FileExtractorOperation
FileExtractor.Transformer
Constructor and Description |
---|
BasicFileExtractor() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
collectResources(FileExtractor.Transformer transformer) |
void |
extractFile(String resourcePath,
FileExtractor.Transformer transformer)
Extracts the given resource from the classpath and stores it as dictacted by
the given Transformer.
|
void |
extractFile(String resourcePath,
String absTargetPath)
Extracts the given resource from the classpath and stores it as absTargetPath.
|
void |
extractFiles(FileExtractor.Transformer transformer)
Extracts all found resources from the classpath, using the given Transformer.
|
protected info.magnolia.module.files.FileExtractorOperation |
newOperation(String resourcePath,
String absTargetPath) |
public void extractFile(String resourcePath, String absTargetPath) throws IOException
FileExtractor
extractFile
in interface FileExtractor
IOException
public void extractFile(String resourcePath, FileExtractor.Transformer transformer) throws IOException
FileExtractor
extractFile
in interface FileExtractor
IOException
public void extractFiles(FileExtractor.Transformer transformer) throws IOException
FileExtractor
extractFiles
in interface FileExtractor
IOException
protected info.magnolia.module.files.FileExtractorOperation newOperation(String resourcePath, String absTargetPath)
protected String[] collectResources(FileExtractor.Transformer transformer)
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.