public class DotfileUtil extends Object
Constructor and Description |
---|
DotfileUtil() |
Modifier and Type | Method and Description |
---|---|
static OutputStream |
create(String f)
Opens a dotfile for writing.
|
static File |
getDotDir()
Gets the directory of the configuration files.
|
static String |
getDotDirName()
Gets the subdirectory name of the configuration files.
|
static File |
getDotFile(String relpath)
Gets a configuration file with the specified relative path.
|
static File |
getDotFileWithEnsuredPath(String relpath) |
static long |
lastModified(String f)
Gets the last modification time for a dotfile.
|
static void |
main(String[] args)
Print the ChemAxon dotdir absolute path.
|
static InputStream |
open(String f)
Opens a dotfile for reading.
|
static void |
setDotDirName(String d)
Sets the subdirectory name for the configuration files.
|
public static File getDotDir()
public static File getDotFile(String relpath)
relpath
- relative pathgetDotDir()
public static File getDotFileWithEnsuredPath(String relpath) throws IOException
IOException
public static OutputStream create(String f) throws IOException
f
- the dotfileIOException
- cannot create directory or filepublic static InputStream open(String f) throws IOException
f
- the dotfileIOException
- cannot create directory or filepublic static long lastModified(String f)
f
- the dotfilepublic static String getDotDirName()
public static void setDotDirName(String d)
d
- the subdirectory namepublic static void main(String[] args)
args
- args