public abstract class OutputDecorator extends Object
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 destinationIOException
public 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 writerIOException