Documentation of 'org.apache.derby.impl.io.vfmem.PathUtil' Java class
PathUtil
org.apache.derby.impl.io.vfmem

Class PathUtil



  • public class PathUtil
    extends java.lang.Object
    Helper methods to deal with paths in the in-memory "file system".

    These methods are similar to those in java.io.File.

    Note: The system has been hardcoded to use the separator specified by java.io.File.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static char SEP 
      static java.lang.String SEP_STR 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String getBaseName(java.lang.String path)
      Returns the base name of the path.
      static java.lang.String getParent(java.lang.String path)
      Returns the parent of the path.
      static java.lang.String join(java.lang.String parent, java.lang.String base)
      Joins the two paths by inserting the separator chararcter between them.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SEP

        public static final char SEP
      • SEP_STR

        public static final java.lang.String SEP_STR
    • Method Detail

      • getBaseName

        public static java.lang.String getBaseName(java.lang.String path)
        Returns the base name of the path.
        Parameters:
        path - the path to process
        Returns:
        The base name of the path.
      • getParent

        public static java.lang.String getParent(java.lang.String path)
        Returns the parent of the path.
        Parameters:
        path - the path to process
        Returns:
        The parent path, which may be the empty string ("") if the path is a relative path, or null if XXXX TODO
      • join

        public static java.lang.String join(java.lang.String parent,
                                            java.lang.String base)
        Joins the two paths by inserting the separator chararcter between them.
        Parameters:
        parent - parent directory
        base - file/directory name
        Returns:
        A merged path.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.