Method Summary |
|
public void | bind(Path context) Binds the context to the current path. |
protected Path | cacheCopy() Copy for caching. |
public boolean | canExecute() Tests if the file can be read. |
public boolean | canRead() Tests if the file can be read. |
public boolean | canWrite() Tests if the file can be written. |
public boolean | changeGroup(int gid) |
public boolean | changeGroup(String groupName) |
public boolean | changeOwner(int uid) |
public boolean | changeOwner(String ownerName) |
public boolean | chmod(int value) |
protected Path | copy() |
public PersistentDependency | createDepend() Creates a dependency. |
public boolean | createLink(Path target, boolean hardLink) Creates a link named by this path to another path. |
public boolean | createNewFile() Creates the file named by this Path and returns true if the
file is new. |
public Path | createRoot() Creates a restricted root, like the Unix chroot call. |
public Path | createRoot(SchemeMap schemeMap) |
public Path | createTempFile(String prefix, String suffix) Creates a unique temporary file as a child of this directory. |
public boolean | equals(Object o) |
protected static String | escapeURL(String rawURL) |
public boolean | exists() Tests if the file exists. |
public Object | getAttribute(String name) Gets an attribute of the object. |
public Iterator | getAttributeNames() Returns a iterator of all attribute names set for this object. |
public long | getBlockCount() Returns equivalent of struct stat.st_blocks if appropriate. |
public long | getBlockSize() Returns equivalent of struct stat.st_blksize if appropriate. |
public Certificate[] | getCertificates() Returns any signing certificates, e.g. |
public String | getContentType() Returns the mime-type of the file. |
public long | getCrc64() Returns the crc64 code. |
public long | getCreateTime() Returns the create time of the file. |
public long | getDevice() Returns equivalent of struct stat.st_dev if appropriate. |
public long | getDeviceId() Returns equivalent of struct stat.st_rdev if appropriate. |
public long | getDiskSpaceFree() |
public long | getDiskSpaceTotal() |
final public static char | getFileSeparatorChar() |
public String | getFullPath() Returns the full path, including the restricted root. |
public int | getGroup() Returns equivalent of struct stat.st_gid if appropriate. |
public String | getHost() |
public long | getInode() Returns equivalent of struct stat.st_ino if appropriate. |
public long | getLastAccessTime() Returns the last access time of the file. |
public long | getLastModified() Returns the last modified time of the file. |
public long | getLastStatusChangeTime() Returns equivalent of struct stat.st_ctime if appropriate. |
public long | getLength() Returns the length of the file in bytes. |
public int | getMode() Returns equivalent of struct stat.st_mode if appropriate. |
public String | getNativePath() Returns the native representation of the path. |
public static String | getNewlineString() |
public int | getNumberOfLinks() Returns equivalent of struct stat.st_nlink if appropriate. |
public Object | getObject() Returns the object at this path. |
public int | getOwner() |
public Path | getParent() Returns the parent path. |
abstract public String | getPath() Returns the path. |
final public static char | getPathSeparatorChar() |
public int | getPort() Returns the port. |
public String | getQuery() Returns the query string of the path. |
public String | getRelativePath() For union paths like MergePath, return the relative path into
that path. |
public ArrayList<Path> | getResources(String name) Looks up all the resources matching a name. |
public ArrayList<Path> | getResources() Looks up all the existing resources. |
abstract public String | getScheme() |
final protected static char | getSeparatorChar() |
public String | getTail() Returns the last segment of the path.
e.g. |
public String | getURL() Returns the full url for the given path. |
public int | getUser() Returns equivalent of struct stat.st_uid if appropriate. |
protected static String | getUserDir() |
public String | getUserPath() Returns the last string used as a lookup, if available. |
public Object | getValue() Gets the object at the path. |
public int | hashCode() |
public boolean | isBlockDevice() Tests if the path refers to a block device. |
public boolean | isCharacterDevice() Tests if the path refers to a block device. |
public boolean | isDirectory() Tests if the path refers to a directory. |
public boolean | isExecutable() |
public boolean | isFIFO() Tests if the path refers to a FIFO. |
public boolean | isFile() Tests if the path refers to a file. |
public boolean | isHardLink() Tests if the path refers to a hard link. |
public boolean | isLink() Tests if the path refers to a symbolic link. |
public boolean | isObject() Tests if the path refers to an object. |
protected boolean | isPathCacheable() |
public boolean | isSocket() Tests if the path refers to a socket. |
public boolean | isSymbolicLink() Tests if the path refers to a symbolic link. |
final public static boolean | isWindows() |
public boolean | isWindowsInsecure() Returns true for windows security issues. |
public Iterator<String> | iterator() Returns a jdk1.2 Iterator for the contents of this directory. |
public String[] | list() |
final public Path | lookup(String name) Looks up a new path based on the old path. |
public Path | lookup(String userPath, Map<String, Object> newAttributes) Returns a new path relative to the current one.
Path only handles scheme:xxx. |
public Path | lookupImpl(String userPath, Map<String, Object> newAttributes) Returns a new path relative to the current one.
Path only handles scheme:xxx. |
final public Path | lookupNative(String name) Looks up a path using the local filesystem conventions. |
public Path | lookupNative(String name, Map<String, Object> attributes) Looks up a native path, adding attributes. |
public String | lookupRelativeNativePath(Path path) Returns a native path relative to this native path if the passed path
is relative to this path, or an absolute path if the passed path is not
relative to this path. |
public boolean | mkdir() Creates the directory named by this path. |
public boolean | mkdirs() Creates the directory named by this path and any parent directories. |
public WriteStream | openAppend() Opens a resin stream for appending. |
public StreamImpl | openAppendImpl() |
public RandomAccessStream | openRandomAccess() Opens a random-access stream. |
final public ReadStream | openRead() Opens a resin ReadStream for reading. |
public StreamImpl | openReadImpl() |
public ReadWritePair | openReadWrite() Opens a resin ReadWritePair for reading and writing. |
public void | openReadWrite(ReadStream is, WriteStream os) Opens a resin ReadWritePair for reading and writing. |
public StreamImpl | openReadWriteImpl() |
final public WriteStream | openWrite() Opens a resin WriteStream for writing. |
public StreamImpl | openWriteImpl() |
public boolean | remove() Removes the file or directory named by this path. |
public boolean | removeAll() Removes the all files and directories below this path. |
public boolean | renameTo(Path path) Renames the file or directory to the name given by the path. |
final public boolean | renameTo(String path) Renames the file or directory to the name given by the path. |
protected String | scanScheme(String uri) Returns the scheme portion of a uri. |
abstract protected Path | schemeWalk(String userPath, Map<String, Object> newAttributes, String newPath, int offset) Path-specific lookup. |
final public static void | setDefaultSchemeMap(SchemeMap schemeMap) |
public boolean | setExecutable(boolean isExecutable) Change the executable status of the of the oath. |
public void | setLastModified(long time) |
public void | setObject(Object obj) Sets the object at this path. |
final public static void | setTestWindows(boolean isTest) |
public void | setUserPath(String userPath) Sets the user path. |
public void | setValue(Object obj) Sets the object at the path.
Normal filesystems will generally do nothing. |
public String | toString() |
public boolean | truncate() Sets the length of the file to zero. |
public boolean | truncate(long length) Sets the length of the file. |
public void | unbind() unbinds a link. |
public void | writeToStream(OutputStream os) Utility to write the contents of this path to the destination stream. |
public void | writeToStream(OutputStreamWithBuffer os) Utility to write the contents of this path to the destination stream. |