Package org.smooks.api.delivery
Interface ReaderPool
-
@ThreadSafe public interface ReaderPool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XMLReaderborrowXMLReader()Gets anXMLReaderinstance from the reader pool associated with this ContentDelivery config instance.Map<String,String>getProperties()Returns implementation-specificProperties.voidreturnXMLReader(XMLReader xmlReader)Returns anXMLReaderinstance to the reader pool associated with this ContentDelivery config instance.
-
-
-
Method Detail
-
borrowXMLReader
XMLReader borrowXMLReader()
Gets anXMLReaderinstance from the reader pool associated with this ContentDelivery config instance.- Returns:
- An XMLReader instance if the pool is not empty, otherwise null
-
returnXMLReader
void returnXMLReader(XMLReader xmlReader)
Returns anXMLReaderinstance to the reader pool associated with this ContentDelivery config instance.- Parameters:
xmlReader- XMLReader instance to be returned
-
getProperties
Map<String,String> getProperties()
Returns implementation-specificProperties.- Returns:
- Implementation-specific
Propertiesofthisreader pool
-
-