|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonicsw.mx.config.util.SonicFSFile
public class SonicFSFile
This class is a wrapped around a file or directory returned my the SonicFSFileSystem. This class encapsultates information about the file, it's name, size, createdBy and lastModified
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Test if this SonicFSFile is equal to the specified Object |
java.lang.String |
getCreatedBy()
Returns the creator |
long |
getCreationTimestamp()
Returns the creationTimestamp. |
java.lang.String |
getFullName()
Returns the full name. |
long |
getLastModified()
Returns the lastModified. |
java.lang.String |
getName()
Returns the name. |
java.lang.String |
getParent()
Returns the pathname string of this abstract pathname's parent, or null if this pathname does not name a parent directory. |
SonicFSFile |
getParentFile()
Returns the abstract pathname of this abstract pathname's parent, or null if this pathname does not name a parent directory. |
int |
getSize()
Returns the size. |
boolean |
isAbsolute()
Tests whether this abstract pathname is absolute. |
boolean |
isDirectory()
Tests whether the file denoted by this resource info is a directory. |
boolean |
isFile()
Tests whether the file denoted by this resource info is a normal file. |
boolean |
isParent(SonicFSFile file)
Tests whether this SonicFSFile is the parent of the specified file |
static java.lang.String |
toName(java.lang.String name)
Given a full path to a file, return the filename (the last component in the path). |
static java.lang.String |
toParent(java.lang.String name)
Returns the parent String for the specified path |
java.lang.String |
toString()
Return the string representation of this SonicFSFile. |
java.lang.String |
toURL()
Convert this SonicFSFile into a fully qualified URL e.g.sonicfs:/// |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
-
public java.lang.String getCreatedBy()
public long getCreationTimestamp()
public java.lang.String getFullName()
public long getLastModified()
public java.lang.String getName()
public java.lang.String getParent()
public SonicFSFile getParentFile()
public int getSize()
public boolean isAbsolute()
public boolean isDirectory()
public boolean isFile()
public boolean isParent(SonicFSFile file)
public static java.lang.String toName(java.lang.String name)
public static java.lang.String toParent(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toURL()
|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |