org.kie.commons.java.nio.file
Interface Path
- All Superinterfaces:
- Comparable<Path>, Iterable<Path>, Watchable
- All Known Implementing Classes:
- AbstractPath, GeneralPathImpl
public interface Path
- extends Comparable<Path>, Iterable<Path>, Watchable
getFileSystem
FileSystem getFileSystem()
isAbsolute
boolean isAbsolute()
getRoot
Path getRoot()
getFileName
Path getFileName()
getParent
Path getParent()
getNameCount
int getNameCount()
getName
Path getName(int index)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
subpath
Path subpath(int beginIndex,
int endIndex)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
startsWith
boolean startsWith(Path other)
startsWith
boolean startsWith(String other)
throws InvalidPathException
- Throws:
InvalidPathException
endsWith
boolean endsWith(Path other)
endsWith
boolean endsWith(String other)
throws InvalidPathException
- Throws:
InvalidPathException
normalize
Path normalize()
resolve
Path resolve(Path other)
resolve
Path resolve(String other)
throws InvalidPathException
- Throws:
InvalidPathException
resolveSibling
Path resolveSibling(Path other)
resolveSibling
Path resolveSibling(String other)
throws InvalidPathException
- Throws:
InvalidPathException
relativize
Path relativize(Path other)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
toUri
URI toUri()
throws IOException,
SecurityException
- Throws:
IOException
SecurityException
toAbsolutePath
Path toAbsolutePath()
throws IOException,
SecurityException
- Throws:
IOException
SecurityException
toRealPath
Path toRealPath(LinkOption... options)
throws IOException,
SecurityException
- Throws:
IOException
SecurityException
toFile
File toFile()
throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.