|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParserPool
A pool of XML parsers.
| Method Summary | |
|---|---|
DocumentBuilder |
getBuilder()
Gets a builder from the pool. |
Document |
newDocument()
Convenience method for creating a new document with a pooled builder. |
Document |
parse(InputStream input)
Convenience method for parsing an XML file using a pooled builder. |
Document |
parse(Reader input)
Convenience method for parsing an XML file using a pooled builder. |
void |
returnBuilder(DocumentBuilder builder)
Returns a builder to the pool. |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent |
|---|
destroy, isDestroyed |
| Method Detail |
|---|
@Nonnull
DocumentBuilder getBuilder()
throws XMLParserException
XMLParserException - thrown if the document builder factory is misconfigured
void returnBuilder(@Nullable
DocumentBuilder builder)
builder - the builder to return
@Nonnull
Document newDocument()
throws XMLParserException
XMLParserException - thrown if there is a problem retrieving a builder
@Nonnull
Document parse(@Nonnull
InputStream input)
throws XMLParserException
input - XML to parse
XMLParserException - thrown if there is a problem retrieving a builder, the input stream can not be read,
or the XML was invalid
@Nonnull
Document parse(@Nonnull
Reader input)
throws XMLParserException
input - XML to parse
XMLParserException - thrown if there is a problem retrieving a builder, the input stream can not be read,
or the XML was invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||