Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.core.io;
 
 import java.io.*;

Handler class that can be used to decorate output destinations. Typical use is to use a filter abstraction (filtered output stream, writer) around original output destination, and apply additional processing during write operations.
public abstract class OutputDecorator
    implements java.io.Serializable // since 2.1
    private static final long serialVersionUID = 1L;

    
Method called by com.fasterxml.jackson.core.JsonFactory instance when creating generator for given java.io.OutputStream, when this decorator has been registered.

Parameters:
ctxt IO context in use (provides access to declared encoding)
out Original output destination
Returns:
OutputStream to use; either passed in argument, or something that calls it
    public abstract OutputStream decorate(IOContext ctxtOutputStream out)
        throws IOException;

    
Method called by com.fasterxml.jackson.core.JsonFactory instance when creating generator for given java.io.Writer, when this decorator has been registered.

Parameters:
ctxt IO context in use (provides access to declared encoding)
w Original output writer
Returns:
Writer to use; either passed in argument, or something that calls it
    public abstract Writer decorate(IOContext ctxtWriter wthrows IOException;
New to GrepCode? Check out our FAQ X