public class FilePathComponents extends Object
| Constructor and Description |
|---|
FilePathComponents(File root,
List<File> segments) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isRooted()
Returns `true` when the [root] is not empty.
|
FilePathComponents |
normalize() |
String |
rootName()
Returns a string representing the root for this file, or an empty string is this file name is relative.
|
int |
size()
Returns the number of elements in the path to the file.
|
File |
subPath(int beginIndex,
int endIndex)
Returns a sub-path of the path, starting with the directory at the specified [beginIndex] and up
to the specified [endIndex].
|
public String rootName()
public boolean isRooted()
public int size()
public File subPath(int beginIndex, int endIndex)
public FilePathComponents normalize()
Copyright © 2017. All rights reserved.