public static class SAXDecoder.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SAXDecoder |
build() |
<T extends SAXDecoder.ContentHandlerWithResult<?>> |
registerContentHandler(Class<T> handlerClass)
Will call
Constructor.newInstance(Object...) on handlerClass for each content
stream. |
SAXDecoder.Builder |
registerContentHandler(Type type,
SAXDecoder.ContentHandlerWithResult.Factory<?> handler)
Will call
SAXDecoder.ContentHandlerWithResult.Factory.create() on handler for each
content stream. |
public <T extends SAXDecoder.ContentHandlerWithResult<?>> SAXDecoder.Builder registerContentHandler(Class<T> handlerClass)
Constructor.newInstance(Object...) on handlerClass for each content
stream.
new, it may not affect real performance due to the high cost
of reading streams.IllegalArgumentException - if there's no no-arg constructor on handlerClass.public SAXDecoder.Builder registerContentHandler(Type type, SAXDecoder.ContentHandlerWithResult.Factory<?> handler)
SAXDecoder.ContentHandlerWithResult.Factory.create() on handler for each
content stream. The handler is expected to have a generic parameter of type.public SAXDecoder build()
Copyright © 2012–2023 OpenFeign. All rights reserved.