Examples of decodeEntities()


Examples of org.pentaho.reporting.libraries.xmlns.writer.CharacterEntityParser.decodeEntities()

  {
    final String testNative = "Test is a \u00e4\u00f6\u00fc<&> && test";
    final String testEncoded = "Test is a &auml;&ouml;&uuml;&lt;&amp;&gt; &amp;&amp; test";
    final CharacterEntityParser ep = new CharacterEntityParser (new HtmlCharacterEntities());
    //Log.debug (ep.decodeEntities(testEncoded));
    assertEquals(testNative, ep.decodeEntities(testEncoded));
    assertEquals(testEncoded, ep.encodeEntities(testNative));
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.