com.atlassian.jira.functest.config
Class ConfigFile

java.lang.Object
  extended by com.atlassian.jira.functest.config.ConfigFile

public abstract class ConfigFile
extends Object

Represents a JIRA configuration file.


Nested Class Summary
static class ConfigFile.ConfigFileException
           
 
Constructor Summary
protected ConfigFile(File file)
           
 
Method Summary
static ConfigFile create(File file)
           
 File getFile()
           
protected abstract  InputStream getInputStream(File file)
           
protected abstract  OutputStream getOutputStream(File file)
           
 org.dom4j.Document readConfig()
           
 void writeFile(org.dom4j.Document document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigFile

protected ConfigFile(File file)
Method Detail

create

public static ConfigFile create(File file)
                         throws ConfigFile.ConfigFileException
Throws:
ConfigFile.ConfigFileException

readConfig

public org.dom4j.Document readConfig()
                              throws ConfigFile.ConfigFileException
Throws:
ConfigFile.ConfigFileException

writeFile

public void writeFile(org.dom4j.Document document)
               throws ConfigFile.ConfigFileException
Throws:
ConfigFile.ConfigFileException

getFile

public File getFile()

getInputStream

protected abstract InputStream getInputStream(File file)
                                       throws IOException
Throws:
IOException

getOutputStream

protected abstract OutputStream getOutputStream(File file)
                                         throws IOException
Throws:
IOException


Copyright © 2002-2012 Atlassian. All Rights Reserved.