public class

Path

extends Object
implements Serializable Comparable<T>
java.lang.Object
   ↳ com.atlassian.jira.issue.attachment.Path

Class Overview

Copied from FECRU

./java/com/cenqua/fisheye/Path.java r54145

Summary

Public Constructors
Path()
Path(CharSequence path)
Path(CharSequence path, boolean allowSloshes)
Path(Path path)
Path(Path aParent, String aPath)
Path(Path aParent, Path aPath)
Path(Path aParent, String aPath, boolean allowSloshes)
Path(String aParent, Path aPath)
Public Methods
Path abbreviate(int maxLength)
abbreviate a path by removing path components from the middle until the length of the path (as via .getPath()) is not greater then maxLength.
int compareTo(Path o)
boolean equals(Object o)
String[] getComponents()
String getExtension()
String getName()
Path getParent()
String getPath(boolean caseSensitive)
String getPath()
int hashCode()
boolean isRoot()
static String join(String str1, String str2)
Intelligently Put a "/" between two strings.
void toLowerCase()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public Path ()

public Path (CharSequence path)

public Path (CharSequence path, boolean allowSloshes)

public Path (Path path)

public Path (Path aParent, String aPath)

public Path (Path aParent, Path aPath)

public Path (Path aParent, String aPath, boolean allowSloshes)

public Path (String aParent, Path aPath)

Public Methods

public Path abbreviate (int maxLength)

abbreviate a path by removing path components from the middle until the length of the path (as via .getPath()) is not greater then maxLength.

The first and last path component are always in the returned path.

If any path components were removed, an ellipsis ("...") will appear in the middle

The returned path may in some cases still be greater.

public int compareTo (Path o)

public boolean equals (Object o)

public String[] getComponents ()

public String getExtension ()

Returns
  • the file extension of the path (with no .), or null if there is no file extension

public String getName ()

public Path getParent ()

public String getPath (boolean caseSensitive)

public String getPath ()

Returns
  • the string representation of the path

public int hashCode ()

public boolean isRoot ()

public static String join (String str1, String str2)

Intelligently Put a "/" between two strings.

public void toLowerCase ()

public String toString ()