public abstract class OutputDecorator extends Object implements Serializable
| Constructor and Description |
|---|
OutputDecorator() |
| Modifier and Type | Method and Description |
|---|---|
abstract OutputStream |
decorate(IOContext ctxt,
OutputStream out)
Method called by
JsonFactory instance when
creating generator for given OutputStream, when this decorator
has been registered. |
abstract Writer |
decorate(IOContext ctxt,
Writer w)
Method called by
JsonFactory instance when
creating generator for given Writer, when this decorator
has been registered. |
public abstract OutputStream decorate(IOContext ctxt, OutputStream out) throws IOException
JsonFactory instance when
creating generator for given OutputStream, when this decorator
has been registered.ctxt - IO context in use (provides access to declared encoding)out - Original output destinationIOExceptionpublic abstract Writer decorate(IOContext ctxt, Writer w) throws IOException
JsonFactory instance when
creating generator for given Writer, when this decorator
has been registered.ctxt - IO context in use (provides access to declared encoding)w - Original output writerIOExceptionCopyright © 2008–2018 FasterXML. All rights reserved.