|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.plumtree.openfoundation.io.XPFileSystemObject
com.plumtree.openfoundation.io.XPFile
public class XPFile
XPFile is an abstract representation of a file pathname.
| Constructor Summary | |
|---|---|
XPFile(java.lang.String fileName)
Creates a new File Object (not the file system file) by converting the given pathname string into an abstract pathname. |
|
| Method Summary | |
|---|---|
XPFileWriter |
CreateText()
Create an XPFileWriter that writes a new text file. |
void |
Delete()
Delete this file. |
boolean |
Exists()
Returns true if this file exists, false if it does not. |
long |
GetFileSize()
Returns the length of this file. |
java.lang.String |
GetFullPath()
Returns the full path for this file (e.g. |
XPDateTime |
GetLastModifiedTime()
Returns the last modified time of this file. |
java.lang.String |
GetName()
Returns the name of this file (e.g. |
XPDirectory |
GetParent()
Returns an XPDirectory representing the file this object is in. |
java.io.File |
GetUnderlyingObject()
Returns the platform specific object. |
boolean |
IsDirectory()
Returns a boolean value that determines if this object is a directory or not. |
boolean |
IsHidden()
Returns a boolean value that determines if this file is hidden. |
boolean |
IsReadOnly()
Returns a boolean value that determines if this file is read only or not. |
void |
MoveTo(XPFile toFile)
Moves a file. |
XPFileReader |
OpenText()
Returns a file reader used to read the contents of this file. |
boolean |
SetReadOnly()
Returns a boolean value that determines if the Readonly property is set or not. |
| Methods inherited from class com.plumtree.openfoundation.io.XPFileSystemObject |
|---|
GetExistingPath, GetPathSeparator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XPFile(java.lang.String fileName)
fileName - pathname of the file| Method Detail |
|---|
public XPFileWriter CreateText()
public void Delete()
Delete in class XPFileSystemObjectpublic boolean Exists()
Exists in class XPFileSystemObjectpublic long GetFileSize()
public java.lang.String GetFullPath()
GetFullPath in class XPFileSystemObjectpublic java.lang.String GetName()
GetName in class XPFileSystemObjectpublic XPDirectory GetParent()
GetParent in class XPFileSystemObjectpublic java.io.File GetUnderlyingObject()
public boolean IsDirectory()
IsDirectory in class XPFileSystemObjectpublic XPFileReader OpenText()
public XPDateTime GetLastModifiedTime()
GetLastModifiedTime in class XPFileSystemObjectpublic boolean SetReadOnly()
SetReadOnly in class XPFileSystemObjectpublic boolean IsReadOnly()
IsReadOnly in class XPFileSystemObjectpublic boolean IsHidden()
IsHidden in class XPFileSystemObjectpublic void MoveTo(XPFile toFile)
toFile - the file to move the current file to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||