net.darkmist.alib.escape
Class Escaper.Abstract

java.lang.Object
  extended by net.darkmist.alib.escape.Escaper.Abstract
All Implemented Interfaces:
Escaper
Direct Known Subclasses:
CSS, JS, URL, XML, XMLAttribute
Enclosing interface:
Escaper

public abstract static class Escaper.Abstract
extends Object
implements Escaper


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.darkmist.alib.escape.Escaper
Escaper.Abstract
 
Constructor Summary
Escaper.Abstract()
           
 
Method Summary
 Appendable escape(Appendable appendable, char[] chars)
           
 Appendable escape(Appendable appendable, char[] chars, int off, int len)
           
 Appendable escape(Appendable appendable, CharSequence str)
           
 Appendable escape(Appendable appendable, CharSequence str, int start, int end)
           
 Appendable escape(Appendable appendable, int ch)
           
 Appendable escape(Appendable appendable, String str)
           
 Appendable escape(Appendable appendable, String str, int off, int len)
           
 String escape(int ch)
           
 String escape(String str)
           
 StringBuffer escape(StringBuffer sb, char[] chars)
           
 StringBuffer escape(StringBuffer sb, char[] chars, int off, int len)
           
 StringBuffer escape(StringBuffer sb, CharSequence str)
           
 StringBuffer escape(StringBuffer sb, CharSequence str, int off, int len)
           
 StringBuffer escape(StringBuffer sb, int ch)
           
 StringBuffer escape(StringBuffer sb, String str)
           
 StringBuffer escape(StringBuffer sb, String str, int off, int len)
           
 StringBuilder escape(StringBuilder sb, char[] chars)
           
 StringBuilder escape(StringBuilder sb, char[] chars, int off, int len)
           
 StringBuilder escape(StringBuilder sb, CharSequence str)
           
 StringBuilder escape(StringBuilder sb, CharSequence str, int off, int len)
           
 StringBuilder escape(StringBuilder sb, int ch)
           
 StringBuilder escape(StringBuilder sb, String str)
           
 StringBuilder escape(StringBuilder sb, String str, int off, int len)
           
 Writer escape(Writer out)
          Wrap a writer escaping all output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Escaper.Abstract

public Escaper.Abstract()
Method Detail

escape

public String escape(int ch)
Specified by:
escape in interface Escaper

escape

public String escape(String str)
Specified by:
escape in interface Escaper

escape

public StringBuilder escape(StringBuilder sb,
                            int ch)
Specified by:
escape in interface Escaper

escape

public StringBuilder escape(StringBuilder sb,
                            String str)
Specified by:
escape in interface Escaper

escape

public StringBuilder escape(StringBuilder sb,
                            String str,
                            int off,
                            int len)
Specified by:
escape in interface Escaper

escape

public StringBuilder escape(StringBuilder sb,
                            CharSequence str)
Specified by:
escape in interface Escaper

escape

public StringBuilder escape(StringBuilder sb,
                            CharSequence str,
                            int off,
                            int len)
Specified by:
escape in interface Escaper

escape

public StringBuilder escape(StringBuilder sb,
                            char[] chars)
Specified by:
escape in interface Escaper

escape

public StringBuilder escape(StringBuilder sb,
                            char[] chars,
                            int off,
                            int len)
Specified by:
escape in interface Escaper

escape

public StringBuffer escape(StringBuffer sb,
                           int ch)
Specified by:
escape in interface Escaper

escape

public StringBuffer escape(StringBuffer sb,
                           String str)
Specified by:
escape in interface Escaper

escape

public StringBuffer escape(StringBuffer sb,
                           String str,
                           int off,
                           int len)
Specified by:
escape in interface Escaper

escape

public StringBuffer escape(StringBuffer sb,
                           CharSequence str)
Specified by:
escape in interface Escaper

escape

public StringBuffer escape(StringBuffer sb,
                           CharSequence str,
                           int off,
                           int len)
Specified by:
escape in interface Escaper

escape

public StringBuffer escape(StringBuffer sb,
                           char[] chars)
Specified by:
escape in interface Escaper

escape

public StringBuffer escape(StringBuffer sb,
                           char[] chars,
                           int off,
                           int len)
Specified by:
escape in interface Escaper

escape

public Appendable escape(Appendable appendable,
                         int ch)
                  throws IOException
Specified by:
escape in interface Escaper
Throws:
IOException

escape

public Appendable escape(Appendable appendable,
                         String str)
                  throws IOException
Specified by:
escape in interface Escaper
Throws:
IOException

escape

public Appendable escape(Appendable appendable,
                         String str,
                         int off,
                         int len)
                  throws IOException
Specified by:
escape in interface Escaper
Throws:
IOException

escape

public Appendable escape(Appendable appendable,
                         CharSequence str)
                  throws IOException
Specified by:
escape in interface Escaper
Throws:
IOException

escape

public Appendable escape(Appendable appendable,
                         CharSequence str,
                         int start,
                         int end)
                  throws IOException
Specified by:
escape in interface Escaper
Throws:
IOException

escape

public Appendable escape(Appendable appendable,
                         char[] chars)
                  throws IOException
Specified by:
escape in interface Escaper
Throws:
IOException

escape

public Appendable escape(Appendable appendable,
                         char[] chars,
                         int off,
                         int len)
                  throws IOException
Specified by:
escape in interface Escaper
Throws:
IOException

escape

public Writer escape(Writer out)
Description copied from interface: Escaper
Wrap a writer escaping all output

Specified by:
escape in interface Escaper
Parameters:
out - The writer to wrap.
Returns:
A writer that escapes all output and then writes it to out.


Copyright © 2012. All Rights Reserved.