|
|||||||||
| 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 long |
lastModified(java.lang.String f)
Gets the last modification time for a dotfile. |
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.OutputStream create(java.lang.String f)
throws java.io.IOException
f - the dotfile
java.io.IOException - cannot create directory or file
public 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 name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||