Package com.dropbox.core.v2
Class DbxPathV2
- java.lang.Object
-
- com.dropbox.core.v2.DbxPathV2
-
public class DbxPathV2 extends java.lang.ObjectUtility functions for working with Dropbox paths. This SDK usesStrings to represent paths.Dropbox paths always start with with a slash (
"/"). For full-Dropbox apps, the path is relative to the root of the user's Dropbox. For App Folder apps, the path is relative to the App Folder.
-
-
Constructor Summary
Constructors Constructor Description DbxPathV2()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringfindError(java.lang.String path)static java.lang.StringgetName(java.lang.String path)Returns just the last component of the path.static java.lang.StringgetParent(java.lang.String path)Returns the parent path of the given path ornullif the path is"/".static booleanisValid(java.lang.String path)static java.lang.String[]split(java.lang.String path)
-
-
-
Method Detail
-
isValid
public static boolean isValid(java.lang.String path)
-
findError
public static java.lang.String findError(java.lang.String path)
-
getName
public static java.lang.String getName(java.lang.String path)
Returns just the last component of the path.getName("")→nullgetName("/Photos")→"Photos"getName("/Photos/Home.jpeg")→"Home.jpeg"
-
split
public static java.lang.String[] split(java.lang.String path)
-
getParent
public static java.lang.String getParent(java.lang.String path)
Returns the parent path of the given path ornullif the path is"/".getParent("")→nullgetParent("/Photos")→"/"getParent("/Photos/Recent/Home.jpeg")→"/Photos/Recent"
-
-