public class PathInfo extends TransferableObject implements java.lang.Comparable<PathInfo>, Renderable
Path
.Constructor and Description |
---|
PathInfo(java.nio.file.Path path) |
PathInfo(java.nio.file.Path path,
boolean isReadAttributes) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PathInfo o) |
boolean |
equals(java.lang.Object obj) |
FileDataType |
getDataType() |
java.lang.String |
getElement(int index) |
int |
getElementCount() |
java.lang.String |
getFileName() |
java.lang.String |
getFullPathName() |
long |
getLastModified() |
PathInfo |
getParent() |
java.lang.String |
getParentPathName() |
java.awt.Color |
getRenderColor() |
javax.swing.Icon |
getRenderIcon() |
java.lang.String |
getRenderText() |
java.lang.String |
getRoot() |
long |
getSize() |
int |
hashCode() |
boolean |
isDirectory() |
boolean |
isExisting() |
boolean |
isFile() |
boolean |
startsWith(PathInfo path) |
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
java.io.File |
toFile() |
java.nio.file.Path |
toPath() |
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
clone, deepClone
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
public PathInfo(java.nio.file.Path path)
public PathInfo(java.nio.file.Path path, boolean isReadAttributes)
public final java.lang.String getFileName()
public final java.lang.String getFullPathName()
public final java.lang.String getParentPathName()
public final PathInfo getParent()
public final java.lang.String getRoot()
public final int getElementCount()
public final java.lang.String getElement(int index)
public final FileDataType getDataType()
public final boolean isExisting()
public final long getSize()
public final long getLastModified()
public final boolean isDirectory()
public final boolean isFile()
public final int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final boolean startsWith(PathInfo path)
public int compareTo(PathInfo o)
compareTo
in interface java.lang.Comparable<PathInfo>
public final java.nio.file.Path toPath()
public final java.io.File toFile()
public java.awt.Color getRenderColor()
getRenderColor
in interface Renderable
public javax.swing.Icon getRenderIcon()
getRenderIcon
in interface Renderable
public java.lang.String getRenderText()
getRenderText
in interface Renderable
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class DumpableObject
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class DumpableObject
Copyright © 2014 EsprIT-Systems. All Rights Reserved.