|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.geosolutions.tools.commons.file.Path
public class Path
| Constructor Summary | |
|---|---|
Path()
|
|
| Method Summary | |
|---|---|
static File |
createDirectory(String location,
File directory)
|
static File |
createFile(String location,
File directory)
|
static File |
createTodayDirectory(File destDir,
String inputFileName)
Create a subDirectory having the actual date as name, within a specified destination directory. |
static File |
createTodayDirectory(File destDir,
String inputFileName,
boolean withTime)
Create a subDirectory having the actual date as name, within a specified destination directory. |
static File |
findLocation(File location,
File directory)
findLocation(String, String) |
static File |
findLocation(String location,
File directory)
findLocation(String, String) |
static String |
findLocation(String location,
String directory)
|
static File |
rebaseFile(File srcMountPoint,
File destMountPoint,
File file)
Rebase the file name in input which must be into the srcMountPoint to destMountPoint: /src/mount/point/subDir/file.txt |-srcMountPoint-|---fileName---| |------------file--------------| /dest/mount/point/subDir/file.txt |-destMountPoint-|---fileName---| |------------return-------------| |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Path()
| Method Detail |
|---|
public static File findLocation(String location,
File directory)
findLocation(String, String)
public static File findLocation(File location,
File directory)
findLocation(String, String)
public static String findLocation(String location,
String directory)
throws IllegalArgumentException
location - directory -
IllegalArgumentException - if arguments are null
public static File createFile(String location,
File directory)
throws IOException
IOException
public static File createDirectory(String location,
File directory)
throws IOException
IOException
public static File rebaseFile(File srcMountPoint,
File destMountPoint,
File file)
throws IOException,
IllegalArgumentException
sourceMountPoint - sourceMountPoint - file -
IOException
IllegalArgumentException
public static final File createTodayDirectory(File destDir,
String inputFileName,
boolean withTime)
destDir - the destination directory where to build the "today"
directory.inputFileName -
public static final File createTodayDirectory(File destDir,
String inputFileName)
destDir - the destination directory where to build the "today"
directory.inputFileName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||