|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stylusstudio.converter.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. |
int |
getTempFilePolicy()
Get the current value of the temp file policy. |
void |
setBufferOverflowPolicy(int bufferOverflowPolicy)
Set the memory buffer overflow policy. |
void |
setMaxBufferSize(int maxBufferSize)
Set the maximum size limit for the memory buffer. |
void |
setTempFilePolicy(int tempFilePolicy)
Get 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 void setMaxBufferSize(int maxBufferSize)
public int getMaxBufferSize()
public void setBufferOverflowPolicy(int bufferOverflowPolicy)
public int getBufferOverflowPolicy()
public void setTempFilePolicy(int tempFilePolicy)
public int getTempFilePolicy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |