|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenix_int.aserver.util.PHXFileName
public class PHXFileName
this is a utility class for easily managing file names. The class lets you specify a name, and optionally a base name. If the name fully specifies the file, then the base name is ignored. If not, then the base name may be modified to find the file in different locations.
e.g.:
name set base name to resulting fullName
----------- ------------------ --------------------
/usr/bin /users/woyak /usr/bin
c:/usr/bin d:/users/woyak c:/usr/bin
usr/bin /home/woyak /home/woyak/usr/bin
A PHXStringReplacer may be specified for use in forming the
fullName. If a replacer is specified, both the name and base name
will be passed through it before trying to form the fullName.
| Constructor Summary | |
|---|---|
PHXFileName()
|
|
PHXFileName(java.lang.String baseName,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getBaseName()
|
java.lang.String |
getFullName()
returns the full file name. |
java.lang.String |
getFullNameCoded()
returns the full file name in coded form, i.e. variables have not been substituted into it. |
java.lang.String |
getName()
|
void |
setBaseName(java.lang.String baseName)
sets the base name for the file. |
void |
setName(java.lang.String name)
sets the name for the file |
void |
setStringReplacer(PHXStringReplacer r)
sets the string replacer for the forming the real file name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PHXFileName()
public PHXFileName(java.lang.String baseName,
java.lang.String name)
| Method Detail |
|---|
public void setStringReplacer(PHXStringReplacer r)
public void setName(java.lang.String name)
public java.lang.String getName()
public void setBaseName(java.lang.String baseName)
baseName - the new baseNamepublic java.lang.String getBaseName()
public java.lang.String getFullName()
public java.lang.String getFullNameCoded()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||