|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 fileMethod Detail |
---|
public XPFileWriter CreateText()
public void Delete()
Delete
in class XPFileSystemObject
public boolean Exists()
Exists
in class XPFileSystemObject
public long GetFileSize()
public java.lang.String GetFullPath()
GetFullPath
in class XPFileSystemObject
public java.lang.String GetName()
GetName
in class XPFileSystemObject
public XPDirectory GetParent()
GetParent
in class XPFileSystemObject
public java.io.File GetUnderlyingObject()
public boolean IsDirectory()
IsDirectory
in class XPFileSystemObject
public XPFileReader OpenText()
public XPDateTime GetLastModifiedTime()
GetLastModifiedTime
in class XPFileSystemObject
public boolean SetReadOnly()
SetReadOnly
in class XPFileSystemObject
public boolean IsReadOnly()
IsReadOnly
in class XPFileSystemObject
public boolean IsHidden()
IsHidden
in class XPFileSystemObject
public 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 |