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 getFilePath(String path) throws IOException
path
- The path to obtain the local path fromIOException
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.IOException
- if the given path is not valid.Copyright © 2014. All rights reserved.