Package: org.apache.groovy.groovydoc.tools

## [Java] Class GroovyDocUtil

- org.apache.groovy.groovydoc.tools.GroovyDocUtil

-     public class GroovyDocUtil
      extends Object

  Utility methods for deriving package and file names from source paths.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public static String` | `getFile(String filename)` Returns the simple file name portion of the supplied source path.
    `` | `public static String` | `getPath(String filename)` Returns the package-style path for the supplied source file name.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### public static String getFile(String filename)

      Returns the simple file name portion of the supplied source path.

      Parameters:
        `filename` - the source path to inspect
      Returns:
        the file name without its parent directories

    - #### public static String getPath(String filename)

      Returns the package-style path for the supplied source file name.

      Parameters:
        `filename` - the source file name to inspect
      Returns:
        the parent path, or `DefaultPackage` when the source belongs to the default package