|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenix_int.aserver.types.PHXSimpleType
com.phoenix_int.aserver.types.PHXFile
public class PHXFile
Internal data type used for certain types of files. End users should use PHXRawFile to implement file variables in their custom components.
PHXSimpleType,
PHXRawFile| Constructor Summary | |
|---|---|
PHXFile()
|
|
PHXFile(java.lang.String fileName)
|
|
PHXFile(java.lang.String baseName,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
fromString(java.lang.String value)
converts a String representation to the internal value |
void |
fromString2(PHXStringBuffer value)
converts a PHXStringBuffer representation to the internal value |
java.lang.String |
getContents()
retrieves the contents of the file |
java.lang.String |
getName()
retrieves the name of the file |
java.lang.String |
getNameCoded()
retrieves the name of the file in coded form (without $variables replaced) |
boolean |
hasChanged()
checks to see if the file has changed since the last time getContents() was called |
void |
markAsRead()
call this function after you manually get the contents of the file. |
void |
setBaseName(java.lang.String v)
sets the base name of the file |
void |
setName(java.lang.String v)
sets the name of the file |
void |
setStringReplacer(PHXStringReplacer r)
specifies a PHXStringReplacer object for use in forming the full file name. |
java.lang.String |
toString()
converts the variable to a string |
PHXStringBuffer |
toString2()
converts the variable to a string |
| Methods inherited from class com.phoenix_int.aserver.types.PHXSimpleType |
|---|
addPropertyChangeListener, getDescription, getEnumTokens, getHasChanged, getUnits, removePropertyChangeListener, setDescription, setHasChanged, setUnits |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PHXFile()
public PHXFile(java.lang.String fileName)
public PHXFile(java.lang.String baseName,
java.lang.String name)
| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getNameCoded()
public void setName(java.lang.String v)
v - the namepublic void setBaseName(java.lang.String v)
v - the namepublic void setStringReplacer(PHXStringReplacer r)
r - the string replacer object
public java.lang.String getContents()
throws java.io.IOException
java.io.IOExceptionpublic void markAsRead()
public boolean hasChanged()
public PHXStringBuffer toString2()
public java.lang.String toString()
toString in interface IPHXTypetoString in class java.lang.Objectpublic void fromString2(PHXStringBuffer value)
value - the value to convertpublic void fromString(java.lang.String value)
value - the value to convert
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||