Class EntityFinder

java.lang.Object
io.sf.carte.doc.xml.dtd.EntityFinder

public class EntityFinder extends Object
Entity finder.

Useful if you want to find the entity equivalences to a set of codepoints, as found in a DTD.

  • Constructor Details

  • Method Details

    • findEntities

      public int findEntities(Map<Integer,String> codePoint2Entity, Reader dtdReader) throws IOException
      Find the entities corresponding to the keys in the supplied map, and put them as the corresponding map values.
      Parameters:
      codePoint2Entity - the codePoint-entity map.
      dtdReader - reads from a DTD.
      Returns:
      the number of entity mappings that could be made. It is always less or equal to the size of the supplied map.
      Throws:
      IOException - if an I/O error occurred while reading the DTD.