|
synchronized static boolean | isUNC (Path inputPath) |
|
synchronized static boolean | isUNC (String inputPath) |
|
Definition at line 35 of file UNCPathUtilities.java.
org.sleuthkit.autopsy.coreutils.UNCPathUtilities.UNCPathUtilities |
( |
| ) |
|
synchronized String org.sleuthkit.autopsy.coreutils.UNCPathUtilities.convertPathToUNC |
( |
String |
indexDir | ) |
|
synchronized Map<String, String> org.sleuthkit.autopsy.coreutils.UNCPathUtilities.getMappedDrives |
( |
| ) |
|
|
private |
synchronized Path org.sleuthkit.autopsy.coreutils.UNCPathUtilities.ipToHostName |
( |
Path |
inputPath | ) |
|
Takes a UNC path that may have an IP address in it and converts it to hostname, if it can resolve the hostname. Given "\\10.11.12.13\some\folder", the result will be "\\TEDS_COMPUTER\some\folder" if the IP address 10.11.12.13 belongs to a machine with the hostname TEDS_COMPUTER and the local machine is able to resolve the hostname.
- Parameters
-
inputPath | the path to convert to a hostname UNC path |
- Returns
- the successfully converted path or null if unable to resolve
Definition at line 181 of file UNCPathUtilities.java.
synchronized String org.sleuthkit.autopsy.coreutils.UNCPathUtilities.ipToHostName |
( |
String |
inputPath | ) |
|
Takes a UNC path that may have an IP address in it and converts it to hostname, if it can resolve the hostname. Given "\\10.11.12.13\some\folder", the result will be "\\TEDS_COMPUTER\some\folder" if the IP address 10.11.12.13 belongs to a machine with the hostname TEDS_COMPUTER and the local machine is able to resolve the hostname.
- Parameters
-
inputPath | a String of the path to convert to a hostname UNC path |
- Returns
- the successfully converted path or null if unable to resolve
Definition at line 201 of file UNCPathUtilities.java.
References org.sleuthkit.autopsy.coreutils.UNCPathUtilities.isUNC().
synchronized boolean org.sleuthkit.autopsy.coreutils.UNCPathUtilities.isDriveMapped |
( |
Path |
inputPath | ) |
|
Tests if the drive in the passed in path is a mapped drive.
- Parameters
-
inputPath | the Path to test. |
- Returns
- true if the passed in drive is mapped, false otherwise
Definition at line 142 of file UNCPathUtilities.java.
synchronized boolean org.sleuthkit.autopsy.coreutils.UNCPathUtilities.isDriveMapped |
( |
String |
inputPath | ) |
|
Tests if the drive in the passed in path is a mapped drive.
- Parameters
-
inputPath | the Path to test. |
- Returns
- true if the passed in drive is mapped, false otherwise
Definition at line 157 of file UNCPathUtilities.java.
synchronized static boolean org.sleuthkit.autopsy.coreutils.UNCPathUtilities.isUNC |
( |
Path |
inputPath | ) |
|
|
static |
synchronized static boolean org.sleuthkit.autopsy.coreutils.UNCPathUtilities.isUNC |
( |
String |
inputPath | ) |
|
|
static |
Test if a String path is UNC. It is considered UNC if it begins with \
- Parameters
-
inputPath | the String of the path to check |
- Returns
- true if the passed in Path is UNC, false otherwise
Definition at line 241 of file UNCPathUtilities.java.
synchronized String org.sleuthkit.autopsy.coreutils.UNCPathUtilities.mappedDriveToUNC |
( |
String |
inputPath | ) |
|
synchronized Path org.sleuthkit.autopsy.coreutils.UNCPathUtilities.mappedDriveToUNC |
( |
Path |
inputPath | ) |
|
This method converts a passed in path to UNC if it is not already UNC. The UNC path will end up in one of the following two forms: \\hostname\somefolder\otherfolder or \\IP_ADDRESS\somefolder\otherfolder
This is accomplished by checking the mapped drives list the operating system maintains and substituting where required. If the drive of the path passed in does not exist in the cached mapped drives list, you can force a rescan of the mapped drives list with rescanDrives(), then call this method again. This would be of use if the end user added a mapped drive while your dialog was up, for example.
- Parameters
-
inputPath | the path to convert |
- Returns
- returns a successfully converted inputPath or null if unable to find a matching drive and convert it to UNC
Definition at line 122 of file UNCPathUtilities.java.
References org.sleuthkit.autopsy.coreutils.UNCPathUtilities.mappedDriveToUNC().
synchronized void org.sleuthkit.autopsy.coreutils.UNCPathUtilities.rescanDrives |
( |
| ) |
|
final String org.sleuthkit.autopsy.coreutils.UNCPathUtilities.C_DRIVE = "C:" |
|
staticprivate |
final String org.sleuthkit.autopsy.coreutils.UNCPathUtilities.COLON = ":" |
|
staticprivate |
final String org.sleuthkit.autopsy.coreutils.UNCPathUtilities.DATA_TRIGGER = "----------" |
|
staticprivate |
final int org.sleuthkit.autopsy.coreutils.UNCPathUtilities.DRIVE_LEN = 2 |
|
staticprivate |
Map<String, String> org.sleuthkit.autopsy.coreutils.UNCPathUtilities.drives |
|
staticprivate |
final int org.sleuthkit.autopsy.coreutils.UNCPathUtilities.FIRST_ITEM = 0 |
|
staticprivate |
final String org.sleuthkit.autopsy.coreutils.UNCPathUtilities.MAPPED_DRIVES = "_mapped_drives.txt" |
|
staticprivate |
final String org.sleuthkit.autopsy.coreutils.UNCPathUtilities.nameString |
|
private |
final String org.sleuthkit.autopsy.coreutils.UNCPathUtilities.OK_TXT = "OK" |
|
staticprivate |
final int org.sleuthkit.autopsy.coreutils.UNCPathUtilities.REPLACEMENT_SIZE = 2 |
|
staticprivate |
final int org.sleuthkit.autopsy.coreutils.UNCPathUtilities.STARTING_OFFSET = 0 |
|
staticprivate |
final String org.sleuthkit.autopsy.coreutils.UNCPathUtilities.TEMP_FOLDER = "TEMP" |
|
staticprivate |
final String org.sleuthkit.autopsy.coreutils.UNCPathUtilities.UNC_PATH_START = "\\\\" |
|
staticprivate |
The documentation for this class was generated from the following file: