@PublicAPI public class DotfileUtil extends java.lang.Object
Constructor and Description |
---|
DotfileUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 dotfilejava.io.IOException
- cannot create directory or filepublic static java.io.InputStream open(java.lang.String f) throws java.io.IOException
f
- the dotfilejava.io.IOException
- cannot create directory or filepublic static long lastModified(java.lang.String f)
f
- the dotfilepublic static java.lang.String getDotDirName()
public static void setDotDirName(java.lang.String d)
d
- the subdirectory namepublic static void main(java.lang.String[] args)
args
- args