Class DocumentName.FSInfo
java.lang.Object
org.apache.rat.document.DocumentName.FSInfo
- All Implemented Interfaces:
Comparable<DocumentName.FSInfo>
- Enclosing class:
DocumentName
public static final class DocumentName.FSInfo
extends Object
implements Comparable<DocumentName.FSInfo>
The file system information needed to process document names.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(DocumentName.FSInfo other) Gets the directory separator.booleanstatic DocumentName.FSInfoGets the FSInfo for the default file system.inthashCode()booleanGets the case-sensitivity flag.Removes.and..from filenames.Retrieves the root extracted from the name.String[]Tokenizes the string based on the directory separator of this DocumentName.toString()Gets the common name for the underlying file system.
-
Constructor Details
-
FSInfo
Constructor. Extracts the necessary data from the file system.- Parameters:
fileSystem- the file system to extract data from.
-
-
Method Details
-
getDefault
Gets the FSInfo for the default file system. If the System propertyFSInfois set, theFSInfostored there is used, otherwise theFileSystemreturned fromFileSystems.getDefault()is used.- Returns:
- the FSInfo for the default file system.
-
toString
-
dirSeparator
-
isCaseSensitive
public boolean isCaseSensitive()Gets the case-sensitivity flag.- Returns:
- the case-sensitivity flag.
-
rootFor
-
tokenize
-
normalize
-
compareTo
- Specified by:
compareToin interfaceComparable<DocumentName.FSInfo>
-
equals
-
hashCode
-