org.maltparser.core.config
Class ConfigurationDir
java.lang.Object
org.maltparser.core.config.ConfigurationDir
public class ConfigurationDir
- extends Object
- Since:
- 1.0
- Author:
- Johan Hall
BUFFER
protected static final int BUFFER
- See Also:
- Constant Field Values
configuration
protected Configuration configuration
configDirectory
protected File configDirectory
name
protected String name
type
protected String type
workingDirectory
protected File workingDirectory
url
protected URL url
configLogger
protected org.apache.log4j.Logger configLogger
containerIndex
protected Integer containerIndex
infoFile
protected BufferedWriter infoFile
ConfigurationDir
public ConfigurationDir(Configuration configuration,
URL url)
throws MaltChainedException
- Throws:
MaltChainedException
ConfigurationDir
public ConfigurationDir(Configuration configuration,
String name,
String type,
Integer containerIndex)
throws MaltChainedException
- Throws:
MaltChainedException
getOutputStreamWriter
public OutputStreamWriter getOutputStreamWriter(String fileName,
String charSet)
throws MaltChainedException
- Throws:
MaltChainedException
getOutputStreamWriter
public OutputStreamWriter getOutputStreamWriter(String fileName)
throws MaltChainedException
- Throws:
MaltChainedException
getInputStreamReader
public InputStreamReader getInputStreamReader(String fileName,
String charSet)
throws MaltChainedException
- Throws:
MaltChainedException
getInputStreamReader
public InputStreamReader getInputStreamReader(String fileName)
throws MaltChainedException
- Throws:
MaltChainedException
getFile
public File getFile(String suffix)
throws MaltChainedException
- Throws:
MaltChainedException
copyToConfig
public void copyToConfig(File source)
throws MaltChainedException
- Throws:
MaltChainedException
deleteConfigDirectory
public void deleteConfigDirectory()
throws MaltChainedException
- Throws:
MaltChainedException
getConfigDirectory
public File getConfigDirectory()
setConfigDirectory
protected void setConfigDirectory(File dir)
createConfigDirectory
public void createConfigDirectory()
throws MaltChainedException
- Throws:
MaltChainedException
checkConfigDirectory
protected void checkConfigDirectory()
throws MaltChainedException
- Throws:
MaltChainedException
createInfoFile
protected void createInfoFile()
throws MaltChainedException
- Throws:
MaltChainedException
getInfoFileWriter
public BufferedWriter getInfoFileWriter()
throws MaltChainedException
- Throws:
MaltChainedException
createConfigFile
public void createConfigFile()
throws MaltChainedException
- Throws:
MaltChainedException
initNameNTypeFromInfoFile
protected void initNameNTypeFromInfoFile(URL url)
throws MaltChainedException
- Throws:
MaltChainedException
echoInfoFile
public void echoInfoFile()
throws MaltChainedException
- Throws:
MaltChainedException
unpackConfigFile
public void unpackConfigFile()
throws MaltChainedException
- Throws:
MaltChainedException
unpackConfigFile
protected void unpackConfigFile(JarInputStream jis)
throws MaltChainedException
- Throws:
MaltChainedException
getName
public String getName()
setName
protected void setName(String name)
getType
public String getType()
setType
protected void setType(String type)
getWorkingDirectory
public File getWorkingDirectory()
initWorkingDirectory
public void initWorkingDirectory()
throws MaltChainedException
- Throws:
MaltChainedException
initWorkingDirectory
public void initWorkingDirectory(String pathPrefixString)
throws MaltChainedException
- Throws:
MaltChainedException
initConfigLogger
public org.apache.log4j.Logger initConfigLogger()
throws MaltChainedException
- Throws:
MaltChainedException
getUrl
public URL getUrl()
setUrl
protected void setUrl(URL url)
getConfiguration
public Configuration getConfiguration()
setConfiguration
public void setConfiguration(Configuration configuration)
getContainerIndex
public Integer getContainerIndex()
setContainerIndex
public void setContainerIndex(Integer containerIndex)
finalize
public void finalize()
throws MaltChainedException
- Overrides:
finalize
in class Object
- Throws:
MaltChainedException
Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.