Package org.syncany.util
Class NormalizedPath
- java.lang.Object
-
- org.syncany.util.NormalizedPath
-
public class NormalizedPath extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.logging.Logger
logger
protected java.lang.String
normalizedPath
protected java.io.File
root
-
Constructor Summary
Constructors Constructor Description NormalizedPath(java.io.File root, java.lang.String normalizedPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NormalizedPath
getParent()
boolean
hasIllegalChars()
NormalizedPath
toCreatable(java.lang.String filenameSuffix, boolean canExist)
java.io.File
toFile()
java.lang.String
toString()
NormalizedPath
withSuffix(java.lang.String filenameSuffix, boolean canExist)
-
-
-
Field Detail
-
logger
protected static final java.util.logging.Logger logger
-
root
protected java.io.File root
-
normalizedPath
protected java.lang.String normalizedPath
-
-
Constructor Detail
-
NormalizedPath
public NormalizedPath(java.io.File root, java.lang.String normalizedPath)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getParent
public NormalizedPath getParent()
-
toFile
public java.io.File toFile()
-
hasIllegalChars
public boolean hasIllegalChars()
-
withSuffix
public NormalizedPath withSuffix(java.lang.String filenameSuffix, boolean canExist) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toCreatable
public NormalizedPath toCreatable(java.lang.String filenameSuffix, boolean canExist) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-