info.magnolia.module.files
Interface FileExtractor

All Known Implementing Classes:
BasicFileExtractor, MD5CheckingFileExtractor

public interface FileExtractor

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Nested Class Summary
static interface FileExtractor.Transformer
           
 
Method Summary
 void extractFile(java.lang.String resourcePath, FileExtractor.Transformer transformer)
          Extracts the given resource from the classpath and stores it as dictacted by the given Transformer.
 void extractFile(java.lang.String resourcePath, java.lang.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.
 

Method Detail

extractFile

void extractFile(java.lang.String resourcePath,
                 java.lang.String absTargetPath)
                 throws java.io.IOException
Extracts the given resource from the classpath and stores it as absTargetPath. extractFile("/foo/bar.baz", "/Users/greg/tok.tak"). Does not handle any kind of logic regarding location and name of source and target files.

Throws:
java.io.IOException

extractFile

void extractFile(java.lang.String resourcePath,
                 FileExtractor.Transformer transformer)
                 throws java.io.IOException
Extracts the given resource from the classpath and stores it as dictacted by the given Transformer.

Throws:
java.io.IOException

extractFiles

void extractFiles(FileExtractor.Transformer transformer)
                  throws java.io.IOException
Extracts all found resources from the classpath, using the given Transformer.

Throws:
java.io.IOException


Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.