org.ow2.jonas.generators.genbase.utils
Class DirStorer
java.lang.Object
org.ow2.jonas.generators.genbase.utils.ArchiveStorer
org.ow2.jonas.generators.genbase.utils.DirStorer
public class DirStorer
- extends ArchiveStorer
Store a J2EEArchive in an unpacked form.
- Author:
- Guillaume Sauthier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirStorer
public DirStorer(J2EEArchive archive,
File dir)
throws GenBaseException
- Creates a new DirStorer object.
- Parameters:
archive
- archive to be storeddir
- output directory
- Throws:
GenBaseException
- if cannot create output directory
convertName
protected String convertName(String name)
- Convert a filename to a local filesystem filename.
- Specified by:
convertName
in class ArchiveStorer
- Parameters:
name
- name to be converted
- Returns:
- converted filename
addFile
protected void addFile(String name)
throws IOException
- add a given file in the filesystem.
- Specified by:
addFile
in class ArchiveStorer
- Parameters:
name
- filename
- Throws:
IOException
- When fill fails.
getOutputStream
protected OutputStream getOutputStream(String name)
throws IOException
- returns the OuputStream corresponding to the given filename.
- Specified by:
getOutputStream
in class ArchiveStorer
- Parameters:
name
- filename to create
- Returns:
- An OutputStream
- Throws:
IOException
- When file creation fails.
Copyright © 2010 OW2 Consortium. All Rights Reserved.