Klasse PooledXmlProcessor

java.lang.Object
org.jupnp.transport.impl.PooledXmlProcessor
Bekannte direkte Unterklassen:
GENAEventProcessorImpl, SOAPActionProcessorImpl

public abstract class PooledXmlProcessor extends Object
Abstract class responsible for creating new Documents either for writing or already parsed from a given input stream. The class manages a pool of DocumentBuilders internally and reuses them in different threads saving CPU time from factory and builder instantiation if possible.

On Android this class will not reuse DocumentBuilders because the DocumentBuilder.reset() implementation sets all internal properties to false

Default pool size is 20.

Autor:
Ivan Iliev - Initial contribution and API, Wouter Born - Detect if pooling is possible to fix issues on Android