net.sf.jpkgmk
Class AbstractFileCreatorAdapter

java.lang.Object
  extended by net.sf.jpkgmk.AbstractFileCreatorAdapter
All Implemented Interfaces:
FileHandler.ContentWriter
Direct Known Subclasses:
PkgInfo, PkgMap, Prototype

public abstract class AbstractFileCreatorAdapter
extends java.lang.Object
implements FileHandler.ContentWriter

Abstract implementation of the FileHandler.ContentWriter interface to create a file

Since:
1.0
Version:
$Revision: 2 $ $Date: 2008-08-20 21:14:19 +0200 (Mi, 20 Aug 2008) $
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $

Constructor Summary
AbstractFileCreatorAdapter()
           
 
Method Summary
 void clean(java.io.File targetDir)
           
 void create(java.io.File targetDir)
          Creates the one file represented by this file creator in the given target directory.
abstract  FileHandler getFileHandler(java.io.File targetDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jpkgmk.FileHandler.ContentWriter
writeContent
 

Constructor Detail

AbstractFileCreatorAdapter

public AbstractFileCreatorAdapter()
Method Detail

getFileHandler

public abstract FileHandler getFileHandler(java.io.File targetDir)

create

public void create(java.io.File targetDir)
            throws java.io.IOException
Creates the one file represented by this file creator in the given target directory. This might be a prototype, pkgmap, pkginfo or something arbitrary different

Parameters:
targetDir - The directory into which the file will be written
Throws:
java.io.IOException

clean

public void clean(java.io.File targetDir)


Copyright © 2007-2008. All Rights Reserved.