|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.igfay.jfig.JFigLocator
Field Summary | |
protected java.lang.String |
configDirectory
|
protected java.lang.String |
configFileName
|
protected java.lang.String |
configLocation
|
Constructor Summary | |
JFigLocator(java.lang.String fileName)
|
Method Summary | |
java.lang.String |
getConfigDirectory()
Return the config directory. |
java.lang.String |
getConfigFileName()
Return the config fileName. |
java.lang.String |
getConfigLocation()
Return the config location; file or classpath If user specified LOCATION_PROPERTY on the command line, use that. |
java.lang.String |
getDefaultConfigFileName()
Return a default config fileName. |
java.io.InputStream |
getInputStream()
Return the config file as an InputStream |
protected java.io.InputStream |
getInputStreamForClasspath()
Find the input stream in the classpath |
protected java.io.InputStream |
getInputStreamForFile(java.io.InputStream inputStream)
Find the input stream in the file system. |
protected void |
parseInitialFileName()
Parse the directory name if one is specified. |
void |
setConfigDirectory(java.lang.String value)
Set the configDirectory. |
void |
setConfigFileName(java.lang.String value)
|
void |
setConfigLocation(java.lang.String value)
Set the config location; must be FILE or CLASSPATH. |
void |
setDefaultConfigFileName(java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String configFileName
protected java.lang.String configLocation
protected java.lang.String configDirectory
Constructor Detail |
public JFigLocator(java.lang.String fileName)
Method Detail |
public java.lang.String getConfigLocation() throws JFigException
getConfigLocation
in interface JFigLocatorIF
JFigException
public java.lang.String getDefaultConfigFileName()
getDefaultConfigFileName
in interface JFigLocatorIF
public java.lang.String getConfigFileName()
getConfigFileName
in interface JFigLocatorIF
protected void parseInitialFileName()
public void setConfigFileName(java.lang.String value)
setConfigFileName
in interface JFigLocatorIF
public void setConfigLocation(java.lang.String value) throws JFigException
JFigLocatorIF
setConfigLocation
in interface JFigLocatorIF
value
-
JFigException
JFigLocatorIF.setConfigLocation(java.lang.String)
public void setDefaultConfigFileName(java.lang.String value)
setDefaultConfigFileName
in interface JFigLocatorIF
JFigLocatorIF.setDefaultConfigFileName(java.lang.String)
public java.io.InputStream getInputStream() throws JFigException
getInputStream
in interface JFigLocatorIF
JFigException
protected java.io.InputStream getInputStreamForFile(java.io.InputStream inputStream) throws JFigException
inputStream
-
JFigException
protected java.io.InputStream getInputStreamForClasspath() throws JFigException
JFigException
public java.lang.String getConfigDirectory()
public void setConfigDirectory(java.lang.String value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |