com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class ContainerPath



  • public final class ContainerPath
    extends Object

    Provides the information about the directory in the container.

    • Field Detail

      • ROOT

        public static final ContainerPath ROOT

        An instance of the root directory.

    • Method Detail

      • isRoot

        public boolean isRoot()

        Gets a value indicating whether the path is root.

        Returns:
        Value is true if the path is root; otherwise, false.
      • getDepth

        public int getDepth()

        Gets a depth of the path.

        Returns:
        An integer that represents a depth of the path.
      • get_Item

        public String get_Item(int depth)

        Gets a part of the part by depth.

        Parameters:
        depth - A depth of the path's part.
        Returns:
        A string that represents the part of the path.
      • createDirectory

        public ContainerPath createDirectory(String directoryName)

        Creates a sub directory.

        Parameters:
        directoryName - The name of the sub directory.
        Returns:
        An instance of the ContainerPath for directoryName.
      • toString

        public String toString()

        Returns a string representation of the path.

        Overrides:
        toString in class Object
        Returns:
        A string representation of the path.