![JAR search and dependency download from the Maven repository](/logo.png)
ee.sk.digidoc.c14n.EntityParser_DefaultHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdigidoc Show documentation
Show all versions of jdigidoc Show documentation
A Java libray for manipulating Estonian digital signature container files DDOC and BDOC. Note that this library is deprecated. It is recommended to use the new DigiDoc4j library at https://github.com/open-eid/digidoc4j
The newest version!
package ee.sk.digidoc.c14n;
import ee.sk.digidoc.c14n.EntityParser_Entity;
import ee.sk.digidoc.c14n.EntityParser_Handler;
public class EntityParser_DefaultHandler implements EntityParser_Handler
{
public EntityParser_DefaultHandler()
{
}
public String ResolveEntity(EntityParser_Entity e)
{
if ((e.Hash == null))
{
if (e.get_Item("lt"))
{
return "<";
}
if (e.get_Item("gt"))
{
return ">";
}
if (e.get_Item("amp"))
{
return "&";
}
if (e.get_Item("apos"))
{
return "\'";
}
if (e.get_Item("quot"))
{
return "\"";
}
}
else
{
return null;
}
return null;
}
public String ResolveText(String e)
{
return e;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy