public final class RecyclingFactory extends Object
XMLInputStream, 
ElementFilter, 
XMLInputStreamFactory| Modifier and Type | Method and Description | 
|---|---|
boolean | 
add(XMLInputStream stream)
Deprecated.  
Return a stream to the pool. 
 | 
static void | 
main(String[] args)
Deprecated.  
  | 
XMLInputStream | 
remove(InputStream stream)
Deprecated.  
Get a recycled XMLInputStream from the pool
 or create a new one 
 | 
XMLInputStream | 
remove(InputStream stream,
      ElementFilter filter)
Deprecated.  
Get a recycled XMLInputStream from the pool
 or create a new one and wrap it with the desired
 filter 
 | 
XMLInputStream | 
remove(Reader reader)
Deprecated.  
Get a recycled XMLInputStream from the pool
 or create a new one 
 | 
XMLInputStream | 
remove(Reader reader,
      ElementFilter filter)
Deprecated.  
Get a recycled XMLInputStream from the pool
 or create a new one and wrap it with the desired
 filter 
 | 
public XMLInputStream remove(InputStream stream) throws XMLStreamException
stream - the stream of XML to read fromXMLStreamExceptionpublic XMLInputStream remove(Reader reader) throws XMLStreamException
reader - the XML reader to read fromXMLStreamExceptionpublic XMLInputStream remove(InputStream stream, ElementFilter filter) throws XMLStreamException
stream - the stream of XML to read fromfilter - the ElementFilter to apply to the streamXMLStreamExceptionpublic XMLInputStream remove(Reader reader, ElementFilter filter) throws XMLStreamException
reader - the XML reader to read fromfilter - the ElementFilter to apply to the streamXMLStreamExceptionpublic boolean add(XMLInputStream stream) throws XMLStreamException
stream - the XMLInputStream to return to the poolXMLStreamException