|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.io.Properties | +--com.klg.jclass.util.io.LoadProperties
Encapsulate the user properties that may be needed during the creation of a JClass object (such as JCChart, JCServerChart, or JCDocument) from loaded files. These properties include classes used to resolve files and a user-specified object that will be associated with the created JClass object.
Field Summary | |
protected String |
localEntitySystemId
System ID used for local (to JClass) external entities, such as DTDs. |
protected String |
relativeURLPrefix
Prefix pre-pended to relative URLs |
protected Class |
resolvingClass
Class used to resolve files relative to the classpath. |
protected boolean |
storeUserObject
If true, user object will be stored on created JClass object. |
protected Object |
userObject
User-specified object. |
protected ErrorHandler |
xmlErrorHandler
Error handler for XML |
Fields inherited from class com.klg.jclass.util.io.Properties |
ABSOLUTE, CHARSET_ASCII, CHARSET_ISO, CHARSET_UTF_8, charsets, DEFAULT_ACCESS, DEFAULT_CHARSET_NAME, fileAccess_i18n_strings, fileAccess_strings, fileAccess_values, ignoreExternalResourceExceptions, RELATIVE_URL, RESOLVING_CLASS, SERVLET, URL |
Constructor Summary | |
LoadProperties()
Default constructor. |
|
LoadProperties(Class resolvingClass,
String relativeURLPrefix,
Object userObject,
boolean storeUserObject)
|
Method Summary | |
InputStream |
getInputStreamByAccessType(String fileName,
int accessType)
Given a file name string and an access type, return an InputStream based on these two values. |
String |
getLocalEntitySystemId()
Get System ID used for local (to jclass) external entities, such as DTDs. |
String |
getRelativeURLPrefix()
Get the prefix that will be prepended to relative urls |
Class |
getResolvingClass()
Get the Class object that will be used to resolve files relative to the classpath. |
boolean |
getStoreUserObject()
Determine whether the object specified in the UserObject property will be stored on the created JClass object. |
URL |
getURLByAccessType(String fileName,
int accessType)
Given a file name string and an access type, return an InputStream based on these two values. |
Object |
getUserObject()
Get the user-specified object. |
ErrorHandler |
getXmlErrorHandler()
Return the current XML handler. |
void |
setLocalEntitySystemId(String id)
Set System ID used for local (to jclass) external entities, such as DTDs. |
void |
setRelativeURLPrefix(String prefix)
Set the prefix that will be prepended to relative urls |
void |
setResolvingClass(Class resolvingClass)
Set a Class object that will be used to resolve files relative to the classpath. |
void |
setStoreUserObject(boolean storeUserObject)
Note whether the object specified in the UserObject property should be stored on the created JClass object. |
void |
setUserObject(Object userObject)
Set a user-specified object. |
void |
setXmlErrorHandler(ErrorHandler xmlErrorHandler)
Set the current XML handler. |
Methods inherited from class com.klg.jclass.util.io.Properties |
clone, getDefaultAccess, getFileAccessEnumFromString, getFileAccessStringFromEnum, ignoreExternalResourceExceptions, setIgnoreExternalResourceExceptions |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Class resolvingClass
protected String relativeURLPrefix
protected Object userObject
protected boolean storeUserObject
protected String localEntitySystemId
protected ErrorHandler xmlErrorHandler
Constructor Detail |
public LoadProperties()
public LoadProperties(Class resolvingClass, String relativeURLPrefix, Object userObject, boolean storeUserObject)
Method Detail |
public void setResolvingClass(Class resolvingClass)
resolvingClass
- Class object to be used to resolve filespublic Class getResolvingClass()
public void setRelativeURLPrefix(String prefix)
prefix
- The prefix that will be prepended to any relative urlspublic String getRelativeURLPrefix()
public void setUserObject(Object userObject)
userObject
- Any user-specified objectpublic Object getUserObject()
public void setStoreUserObject(boolean storeUserObject)
storeUserObject
- true if the UserObject property should be
stored on the created JClass object; false otherwise.public boolean getStoreUserObject()
public URL getURLByAccessType(String fileName, int accessType) throws MalformedURLException
fileName
- The file name stringaccessType
- The type of access to file name. Either an absolute
filename, a url, a relative url to a url prefix, or a relatiave to a class.
MalformedURLException
public InputStream getInputStreamByAccessType(String fileName, int accessType) throws IOException, MalformedURLException
fileName
- The file name stringaccessType
- The type of access to file name. Either an absolute
filename, a url, a relative url to a url prefix, or a relatiave to a class.
IOException
MalformedURLException
public void setLocalEntitySystemId(String id)
public String getLocalEntitySystemId()
public ErrorHandler getXmlErrorHandler()
JCXMLErrorPrinter
public void setXmlErrorHandler(ErrorHandler xmlErrorHandler)
xmlErrorHandler
- The new error handler.JCXMLErrorPrinter
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |