net.sourceforge.openutils.mgnlmedia.media.zip
Class DefaultZipImporter

java.lang.Object
  extended by net.sourceforge.openutils.mgnlmedia.media.zip.DefaultZipImporter
All Implemented Interfaces:
ZipImporter

public class DefaultZipImporter
extends Object
implements ZipImporter

Default zip importer. Simply takes files in the provided zip file and store them in the media repository.

Author:
Danilo Ghirardelli

Constructor Summary
DefaultZipImporter()
           
 
Method Summary
 void importFromZip(ZipFile zip, String parentPath)
          Stores in the media repository the images found in the zip file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultZipImporter

public DefaultZipImporter()
Method Detail

importFromZip

public void importFromZip(ZipFile zip,
                          String parentPath)
                   throws ZipImporterException
Stores in the media repository the images found in the zip file. Implementing this method you have control over the (eventual) metadata handling.

Specified by:
importFromZip in interface ZipImporter
parentPath - Repo folder selected for storing the images. May be null.
Throws:
ZipImporterException


Copyright © 2008-2011 Openmind. All Rights Reserved.