SimpleHTMLEncoder (Lucene 2.4.1 API)
Keywords: org.apache.lucene.search.highlight.SimpleHTMLEncoder class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.lucene.search.highlight
Class SimpleHTMLEncoder

    java.lang.Object
      org.apache.lucene.search.highlight.SimpleHTMLEncoder

All Implemented Interfaces:
  Encoder

    public class SimpleHTMLEncoder

extends Object
implements Encoder

Simple `Encoder` implementation to escape text for HTML output

Constructor Summary
`SimpleHTMLEncoder()`

Method Summary
`String` | `encodeText(String originalText)`
`static String` | `htmlEncode(String plainText)` Encode string into HTML

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SimpleHTMLEncoder

    public SimpleHTMLEncoder()

Method Detail

### encodeText

    public String encodeText(String originalText)

  Specified by:
    `encodeText` in interface `Encoder`
  Parameters:
    `originalText` - The section of text being output

### htmlEncode

    public static final String htmlEncode(String plainText)

  Encode string into HTML

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.