com.atlassian.jira.render
Class NoOpEncoder

java.lang.Object
  extended by com.atlassian.jira.render.NoOpEncoder
All Implemented Interfaces:
Encoder

@Immutable
public final class NoOpEncoder
extends Object
implements Encoder

Encoder that renders everything as-is.

Since:
v5.0.4

Constructor Summary
NoOpEncoder()
           
 
Method Summary
 String encodeForHtml(Object input)
          Renders input as HTML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpEncoder

public NoOpEncoder()
Method Detail

encodeForHtml

@Nonnull
public String encodeForHtml(@Nullable
                                    Object input)
Description copied from interface: Encoder
Renders input as HTML. This method calls toString() on input in order to get its String representation. If input is null, this method returns "".

Specified by:
encodeForHtml in interface Encoder
Parameters:
input - a String
Returns:
a String that is encoded for HTML


Copyright © 2002-2014 Atlassian. All Rights Reserved.