org.carrot2.filter.trc.carrot.tokenizer
Class CommonEntityResolver

java.lang.Object
  extended by org.carrot2.filter.trc.carrot.tokenizer.CommonEntityResolver
All Implemented Interfaces:
HTMLEntityResolver

public class CommonEntityResolver
extends Object
implements HTMLEntityResolver

Resolve HTML Entity to its text form (  -> " ", & -> "&", etc)


Field Summary
protected static String[] ENTITIES
           
protected static String[] TEXT
           
 
Constructor Summary
CommonEntityResolver()
           
 
Method Summary
 String resolve(String entity)
          Resolve most common entities to its form
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTITIES

protected static final String[] ENTITIES

TEXT

protected static final String[] TEXT
Constructor Detail

CommonEntityResolver

public CommonEntityResolver()
Method Detail

resolve

public String resolve(String entity)
Resolve most common entities to its form

Specified by:
resolve in interface HTMLEntityResolver
Parameters:
entity -


Copyright (c) Dawid Weiss, Stanislaw Osinski