Returns the DocumentParser instance attached to the current thread.
Parses the input stream into a yaidom Document
, using the DocumentParser attached to the current thread.
Parses the input stream into a yaidom Document
, using the DocumentParser attached to the current thread.
Parses the content of the given File into a eu.cdevreeze.yaidom.simple.Document.
Parses the content of the given File into a eu.cdevreeze.yaidom.simple.Document.
Parses the content of the given URI into a eu.cdevreeze.yaidom.simple.Document.
Parses the content of the given URI into a eu.cdevreeze.yaidom.simple.Document.
Thread-local DocumentParser. This class exists because typical JAXP factory objects (DocumentBuilderFactory etc.) are not thread-safe, but still expensive to create. Using this DocumentParser facade backed by a thread local DocumentParser, we can create a ThreadLocalDocumentParser once, and re-use it all the time without having to worry about thread-safety issues.
Note that each ThreadLocalDocumentParser instance (!) has its own thread-local document parser. Typically it makes no sense to have more than one ThreadLocalDocumentParser instance in one application. In a Spring application, for example, a single instance of a ThreadLocalDocumentParser can be configured.