|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ddtek.xmlconverter.Configuration
A Configuration object contains user settable policies that govern certain aspects of the conversion process.
Each ConverterFactory contains a Configuration object which can be modified by the application; any changes affect all Converter objects created subsequently from that ConverterFactory.
When the user creates a Converter object from the ConverterFactory, the Converter object gets a copy of the factory's Configuration. This copy can also be modified by the application if desired.
The Configuration object is fully Thread-safe, however if one Thread modifies a Configuration object, that may affect the behavior of another Thread's conversion which is using the same Configuration.
| Field Summary | |
static int |
ABORT
Value for setBufferOverflowPolicy and setTempFilePolicy. |
static int |
UNLIMITED_BUFFER
Value for setMaxBufferSize to indicate there should be no limit. |
static int |
USE_MEMORY
Value for setTempFilePolicy. |
static int |
USE_TEMP_FILE
Value for setBufferOverflowPolicy. |
| Constructor Summary |
| Method Summary | |
int |
getBufferOverflowPolicy()
Get the current value of the memory buffer overflow policy. |
int |
getMaxBufferSize()
Get the current size limit for the memory buffer. |
String |
getProperty(String property,
String defaultValue)
Get the current value of a property which affects the behavior of an XML Converter. |
int |
getTempFilePolicy()
Get the current value of the temp file policy. |
void |
setBufferOverflowPolicy(int value)
Set the memory buffer overflow policy. |
void |
setMaxBufferSize(int value)
Set the maximum size limit for the memory buffer. |
void |
setProperty(String property,
String value)
Set a property which affects the behavior of an XML Converter. |
void |
setTempFilePolicy(int value)
Set the temp file policy. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int UNLIMITED_BUFFER
public static final int ABORT
public static final int USE_TEMP_FILE
public static final int USE_MEMORY
| Constructor Detail |
| Method Detail |
public int getMaxBufferSize()
public void setMaxBufferSize(int value)
public int getBufferOverflowPolicy()
public void setBufferOverflowPolicy(int value)
public int getTempFilePolicy()
public void setTempFilePolicy(int value)
public void setProperty(String property,
String value)
property - The property name.value - The property value.
public String getProperty(String property,
String defaultValue)
property - The property name.defaultValue - The default value if the property is not set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||