public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getFilePath(String path)
Removes Constants.HEADER / Constants.HEADER_FT and hostname:port information from a path,
leaving only the local file path.
|
static String |
validatePath(String path)
Validates the path, verifying that it contains the
Constants.HEADER or
Constants.HEADER_FT and a hostname:port specified. |
public static String validatePath(String path) throws IOException
Constants.HEADER or
Constants.HEADER_FT and a hostname:port specified.path - The path to be verified.IOExceptionpublic static String getFilePath(String path) throws IOException
path - The path to obtain the local path fromIOExceptionCopyright © 2014. All rights reserved.