|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.xoetrope.deprecated.xui.XResourceManager
public class XResourceManager
A class used to manage access to resources. This class wraps access to resources such as the files, images, readers and application objects such as Window and Frame references.
File access is provided so that the resource manager can determine the source of the file by searching the classpath.
Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt $Revision: 1.4 $
Constructor Summary | |
---|---|
protected |
XResourceManager(XProject proj) Deprecated. since 2.0 use XProject instead |
Method Summary | |
---|---|
void |
addCustomClassLoader(java.lang.ClassLoader c) Deprecated. since 2.0 use XProject instead |
java.awt.Frame |
getAppFrame() Deprecated. since 2.0 use XProject instead |
java.applet.Applet |
getApplet() Deprecated. since 2.0 use XProject instead |
java.awt.Window |
getAppWindow() Deprecated. since 2.0 use XProject instead |
java.io.BufferedInputStream |
getBufferedInputStream(java.io.File file) Deprecated. since 2.0 use XProject instead |
java.io.BufferedInputStream |
getBufferedInputStream(java.lang.String s) Deprecated. since 2.0 use XProject instead |
java.io.BufferedOutputStream |
getBufferedOutputStream(java.lang.String file) Deprecated. since 2.0 use XProject instead |
java.io.BufferedOutputStream |
getBufferedOutputStream(java.lang.String file, boolean useProjectParent) Deprecated. since 2.0 use XProject instead |
java.io.BufferedReader |
getBufferedReader(java.io.File file, java.lang.String encoding) Deprecated. since 2.0 use XProject instead |
java.io.BufferedReader |
getBufferedReader(java.lang.String file) Deprecated. since 2.0 use XProject instead |
java.io.BufferedReader |
getBufferedReader(java.lang.String file, java.lang.String encoding) Deprecated. since 2.0 use XProject instead |
java.lang.String |
getDefaultEncoding() Deprecated. since 2.0 use XProject instead |
java.net.URL |
getDocumentBase() Deprecated. since 2.0 use XProject instead |
javax.swing.Icon |
getIcon(java.lang.String name) Deprecated. since 2.0 use XProject instead |
java.awt.Image |
getImage(java.lang.String name) Deprecated. since 2.0 use XProject instead |
void |
getImage(XImageHolder holder, java.lang.String name) Deprecated. since 2.0 use XProject instead |
java.io.InputStream |
getInputStream(java.io.File file) Deprecated. since 2.0 use XProject instead |
java.io.InputStream |
getInputStream(java.lang.String fileName) Deprecated. since 2.0 use XProject instead |
static XResourceManager |
getInstance() Deprecated. since 1.0.3 |
java.io.OutputStream |
getOutputStream(java.lang.String file) Deprecated. since 2.0 use XProject instead |
java.io.OutputStream |
getOutputStream(java.lang.String file, boolean useProjectParent) Deprecated. since 2.0 use XProject instead |
java.lang.String |
getPackageName() Deprecated. since 2.0 use XProject instead |
java.util.ResourceBundle |
getResourceBundle(java.lang.String name) Deprecated. since 2.0 use XProject instead |
ResourceBundleLoader |
getResourceBundleLoader() Deprecated. since 2.0 use XProject instead |
java.lang.String |
getStartupParam(java.lang.String name) Deprecated. since 1.0.3 use project.getStartupParam |
int |
getStartupParamAsInt(java.lang.String name) Deprecated. since 1.0.3 use XProject.getStartupParamAsInt |
java.net.URL |
getUrl(java.lang.String fileName) Deprecated. since 2.0 use XProject instead |
void |
reset() Deprecated. since 2.0 use XProject instead |
void |
setAppFrame(java.awt.Frame frame) Deprecated. since 2.0 use XProject instead |
void |
setApplet(java.applet.Applet applet) Deprecated. since 2.0 use XProject instead |
void |
setAppWindow(java.awt.Window window) Deprecated. since 2.0 use XProject instead |
void |
setDefaultEncoding(java.lang.String encoding) Deprecated. since 2.0 use XProject instead |
void |
setDefaultFile(java.lang.String file) Deprecated. since 2.0 use XProject instead |
void |
setDocumentBase(java.net.URL u) Deprecated. since 2.0 use XProject instead |
void |
setPackageName(java.lang.String pn) Deprecated. since 2.0 use XProject instead |
void |
setResourceBundleLoader(ResourceBundleLoader loader) Deprecated. since 2.0 use XProject instead |
void |
setStartupFile(java.lang.String fileName) Deprecated. since 1.0.3 use XProject.setStatupFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected XResourceManager(XProject proj)
Method Detail |
---|
public static XResourceManager getInstance()
public javax.swing.Icon getIcon(java.lang.String name)
name
- the image resource namepublic java.awt.Image getImage(java.lang.String name)
name
- the image resource namepublic void getImage(XImageHolder holder, java.lang.String name)
holder
- the component containing to display the imagename
- the image resource namepublic void setStartupFile(java.lang.String fileName)
fileName
- the name of the startup resource file.public java.lang.String getStartupParam(java.lang.String name)
name
- the paramenter namepublic int getStartupParamAsInt(java.lang.String name)
name
- the paramenter namepublic java.io.InputStream getInputStream(java.lang.String fileName)
fileName
- the resource file namepublic java.io.BufferedInputStream getBufferedInputStream(java.lang.String s)
s
- the resource namepublic java.net.URL getUrl(java.lang.String fileName)
fileName
- the resource file namepublic void addCustomClassLoader(java.lang.ClassLoader c)
c
- the classloaderpublic java.io.InputStream getInputStream(java.io.File file)
file
- the filepublic java.io.BufferedInputStream getBufferedInputStream(java.io.File file)
file
- the filepublic java.io.BufferedReader getBufferedReader(java.lang.String file) throws java.lang.Exception
file
- the resource file namejava.lang.Exception
public java.io.BufferedReader getBufferedReader(java.lang.String file, java.lang.String encoding) throws java.lang.Exception
file
- the resource file nameencoding
- the input encoding e.g. "UTF8" or null for the default encoding (UTF8 unless it has been changed)java.lang.Exception
public java.io.BufferedReader getBufferedReader(java.io.File file, java.lang.String encoding) throws java.lang.Exception
file
- the resource fileencoding
- the input encoding e.g. "UTF8" or null for the default encoding (UTF8 unless it has been changed)java.lang.Exception
public java.io.OutputStream getOutputStream(java.lang.String file)
file
- the filepublic java.io.BufferedOutputStream getBufferedOutputStream(java.lang.String file)
file
- the filepublic java.io.OutputStream getOutputStream(java.lang.String file, boolean useProjectParent)
file
- the fileuseProjectParent
- use the projects default file specification to locate the filepublic java.io.BufferedOutputStream getBufferedOutputStream(java.lang.String file, boolean useProjectParent)
file
- the fileuseProjectParent
- use the projects default file specification to locate the filepublic void setPackageName(java.lang.String pn)
pn
-public java.lang.String getPackageName()
public java.net.URL getDocumentBase()
public void setDocumentBase(java.net.URL u)
u
-public void setApplet(java.applet.Applet applet)
applet
-public void setAppFrame(java.awt.Frame frame)
frame
-public void setAppWindow(java.awt.Window window)
window
-public java.applet.Applet getApplet()
public java.awt.Frame getAppFrame()
public java.awt.Window getAppWindow()
public void reset()
public java.lang.String getDefaultEncoding()
public void setDefaultEncoding(java.lang.String encoding)
encoding
- the encoding e.g. "UTF8" or "ISO-8859-1"http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html
public void setResourceBundleLoader(ResourceBundleLoader loader)
loader
- the new loaderpublic ResourceBundleLoader getResourceBundleLoader()
public java.util.ResourceBundle getResourceBundle(java.lang.String name)
name
- the unqualified name of the resource bundlepublic void setDefaultFile(java.lang.String file)
file
- the file or directory specification
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |