org.apache.maven.plugin.assembly.testutils
Class TestFileManager

java.lang.Object
  extended by org.apache.maven.plugin.assembly.testutils.TestFileManager

public class TestFileManager
extends Object


Field Summary
static String TEMP_DIR_PATH
           
 
Constructor Summary
TestFileManager(String baseFilename, String fileSuffix)
           
 
Method Summary
 void cleanUp()
           
 File createFile(File dir, String filename, String contents)
          NOTE: the file content is written using platform encoding.
 File createTempDir()
           
 File createTempFile()
           
protected  void finalize()
           
 String getFileContents(File file)
          NOTE: the file content is read using platform encoding.
 void markForDeletion(File toDelete)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMP_DIR_PATH

public static final String TEMP_DIR_PATH
Constructor Detail

TestFileManager

public TestFileManager(String baseFilename,
                       String fileSuffix)
Method Detail

markForDeletion

public void markForDeletion(File toDelete)

createTempDir

public File createTempDir()

createTempFile

public File createTempFile()
                    throws IOException
Throws:
IOException

cleanUp

public void cleanUp()

createFile

public File createFile(File dir,
                       String filename,
                       String contents)
                throws IOException
NOTE: the file content is written using platform encoding.

Throws:
IOException

getFileContents

public String getFileContents(File file)
                       throws IOException
NOTE: the file content is read using platform encoding.

Throws:
IOException

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.