Should be invoked when the code finished using an
XMLStreamWriter .
If the recycled instance implements
RecycleAware ,
RecycleAware.onRecycled will be invoked to let the instance
know that it's being recycled.
It is not a hard requirement to call this method on every
XMLStreamReader instance. Not doing so just reduces the performance by throwing away
possibly reusable instances. So the caller should always consider the effort
it takes to recycle vs the possible performance gain by doing so.
This method may be invked by multiple threads concurrently.
Parameters: r - The XMLStreamReader instance that the caller finished using.This could be any XMLStreamReader implementation, not justthe ones that were created from this factory. So the implementationof this class needs to be aware of that. |