public abstract class OutputDecorator
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
OutputDecorator() |
Modifier and Type | Method and Description |
---|---|
abstract java.io.OutputStream |
decorate(IOContext ctxt,
java.io.OutputStream out)
Method called by
JsonFactory instance when
creating generator for given OutputStream , when this decorator
has been registered. |
abstract java.io.Writer |
decorate(IOContext ctxt,
java.io.Writer w)
Method called by
JsonFactory instance when
creating generator for given Writer , when this decorator
has been registered. |
public abstract java.io.OutputStream decorate(IOContext ctxt, java.io.OutputStream out) throws java.io.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 destinationjava.io.IOException
- if construction of decorated OutputStream
failspublic abstract java.io.Writer decorate(IOContext ctxt, java.io.Writer w) throws java.io.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 writerjava.io.IOException
- if construction of decorated Writer
failsCopyright © 2010 - 2023 Adobe. All Rights Reserved