Logo Search packages:      
Sourcecode: jericho-html version File versions  Download package

static String au::id::jericho::lib::html::CharacterEntityReference::getCharacterReferenceString ( final int  codePoint  )  [inline, static]

Returns the character entity reference encoded form of the specified unicode code point.

If the specified unicode code point does not have an equivalent character entity reference, this method returns null. To get either the entity or numeric reference encoded form, use the CharacterReference#getCharacterReferenceString(int codePoint) method instead.

Examples:
CharacterEntityReference.getCharacterReferenceString(62) returns "<code>&amp;gt;</code>" CharacterEntityReference.getCharacterReferenceString(9786) returns null

Returns:
the character entity reference encoded form of the specified unicode code point, or null if none exists.
See also:
CharacterReference::getCharacterReferenceString(int codePoint)

Reimplemented from au::id::jericho::lib::html::CharacterReference.

Definition at line 953 of file CharacterEntityReference.java.

References getCharacterReferenceString(), and getName().

                                                                            {
            if (codePoint>Character.MAX_VALUE) return null;
            final String name=getName(codePoint);
            return name!=null ? getCharacterReferenceString(name) : null;
      }


Generated by  Doxygen 1.6.0   Back to index