|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.util.DotfileUtil
public class DotfileUtil
Utility class for configuration file handling.
Constructor Summary | |
---|---|
DotfileUtil()
|
Method Summary | |
---|---|
static java.io.OutputStream |
create(java.lang.String f)
Opens a dotfile for writing. |
static java.io.File |
getDotDir()
Gets the directory of the configuration files. |
static java.lang.String |
getDotDirName()
Gets the subdirectory name of the configuration files. |
static java.io.File |
getDotFile(java.lang.String relpath)
Gets a configuration file with the specified relative path. |
static java.io.File |
getDotFileWithEnsuredPath(java.lang.String relpath)
|
static long |
lastModified(java.lang.String f)
Gets the last modification time for a dotfile. |
static void |
main(java.lang.String[] args)
Print the ChemAxon dotdir absolute path. |
static java.io.InputStream |
open(java.lang.String f)
Opens a dotfile for reading. |
static void |
setDotDirName(java.lang.String d)
Sets the subdirectory name for the configuration files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DotfileUtil()
Method Detail |
---|
public static java.io.File getDotDir()
public static java.io.File getDotFile(java.lang.String relpath)
relpath
- relative pathgetDotDir()
public static java.io.File getDotFileWithEnsuredPath(java.lang.String relpath) throws java.io.IOException
java.io.IOException
public static java.io.OutputStream create(java.lang.String f) throws java.io.IOException
f
- the dotfile
java.io.IOException
- cannot create directory or filepublic static java.io.InputStream open(java.lang.String f) throws java.io.IOException
f
- the dotfile
java.io.IOException
- cannot create directory or filepublic static long lastModified(java.lang.String f)
f
- the dotfile
public static java.lang.String getDotDirName()
public static void setDotDirName(java.lang.String d)
d
- the subdirectory namepublic static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |