List of utility methods to do Temp Directory Get
String | getTempDirectory(String applicationName) Returns a temporary directory for a given application String tempDir = getApplicationDataDirectory(applicationName) + "/temp/"; File tempDirFile = new File(tempDir); if (!tempDirFile.exists()) { tempDirFile.mkdirs(); return tempDirFile.getAbsolutePath() + File.separatorChar; |
String | getTempDirectoryPath() get Temp Directory Path return System.getProperty("java.io.tmpdir"); |
String | getTempDirectoryPathString() Getting a string object of the temporal directory which is referrenced by System.getProperty("java.io.tmpdir") . return System.getProperty("java.io.tmpdir"); |
String | getTempDirectoryStr() Returns the temporary directory as string. String dir; File file; if (m_TempDir == null) { dir = System.getProperty(PROPERTY_TMPDIR); if (dir == null) { dir = System.getProperty("java.io.tmpdir"); } else { file = new File(dir); ... |
File | getTempDirFile() get Temp Dir File File dir = new File(getTempDir()); if (!dir.exists() & !dir.mkdir()) { return null; return dir; |
String | getTempDirFilePath(String name) get Temp Dir File Path return new File(getTempDirectory(), name).getAbsolutePath(); |
String | getTempDirName() get Temp Dir Name String tmpDir = System.getProperty("buildDirectory"); if (tmpDir == null) { if (new File("target/").exists()) { tmpDir = "target"; } else { tmpDir = "/tmp"; return tmpDir; |
String | getTempDirURL() Get the absolute url of a os specific temp directory String tempdir = System.getProperty("java.io.tmpdir"); if (!(tempdir.endsWith("/") || tempdir.endsWith("\\"))) { tempdir = tempdir + System.getProperty("file.separator"); return tempdir; |
String | getTempDirValue() Returns with the value of System.getProperty("java.io.tmpdir") . return checkNotNull(System.getProperty("java.io.tmpdir"), "Null for java.io.tmpdir system property."); |
String | getTempDirWithFileSeparatorSuffix() Get the platform dependent temporary directory path, with 'file separator' suffix('/' on linux platform, '\' on windows). String p = System.getProperty("java.io.tmpdir"); if (p.endsWith(File.separator)) return p; return p + File.separator; |