|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.converter.xsem.PoolXmlContentConverterWrapper
public class PoolXmlContentConverterWrapper
An XmlContentConverter implementation that wraps the actual XmlContentConverter
configured (based on the settings) and creates and configures a pool of XmlContentConverters
for both toXml(org.compass.core.xml.XmlObject) and fromXml(String, java.io.Reader).
| Constructor Summary | |
|---|---|
PoolXmlContentConverterWrapper()
|
|
| Method Summary | |
|---|---|
void |
configure(CompassSettings settings)
Configures the pool used from CompassEnvironment.Converter.XmlContent#MIN_POOL_SIZE and
CompassEnvironment.Converter.XmlContent#MAX_POOL_SIZE. |
AliasedXmlObject |
fromXml(String alias,
Reader xml)
Converts a raw xml and an alias into an AliasedXmlObject by using the pool of
XmlContentConverters implementation. |
String |
toXml(XmlObject xmlObject)
Converts the XmlObject into raw xml by using the pool of
XmlContentConverters implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoolXmlContentConverterWrapper()
| Method Detail |
|---|
public void configure(CompassSettings settings)
throws CompassException
CompassEnvironment.Converter.XmlContent#MIN_POOL_SIZE and
CompassEnvironment.Converter.XmlContent#MAX_POOL_SIZE.
configure in interface CompassConfigurablesettings - The settings for the configured object
CompassException
public String toXml(XmlObject xmlObject)
throws ConversionException
XmlObject into raw xml by using the pool of
XmlContentConverters implementation.
toXml in interface XmlContentConverterxmlObject - The xml object to convert to an xml string
ConversionException - Failed to convert the xml object to an xml stringXmlContentConverter.toXml(org.compass.core.xml.XmlObject)
public AliasedXmlObject fromXml(String alias,
Reader xml)
throws ConversionException
AliasedXmlObject by using the pool of
XmlContentConverters implementation.
fromXml in interface XmlContentConverteralias - The alias the aliases xml object is associated withxml - The xml string that will be converted into an aliases xml object
ConversionExceptionXmlContentConverter.fromXml(String, java.io.Reader)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||