Class CMapLocationFromBytes

java.lang.Object
com.itextpdf.io.font.cmap.CMapLocationFromBytes
All Implemented Interfaces:
ICMapLocation

public class CMapLocationFromBytes extends Object implements ICMapLocation
Supplies a CMap tokenizer backed by an in-memory byte array.
  • Constructor Details

    • CMapLocationFromBytes

      public CMapLocationFromBytes (byte[] data)
      Creates a location backed by the provided CMap bytes.
      Parameters:
      data - the CMap source bytes; retained without copying
  • Method Details

    • getLocation

      public PdfTokenizer getLocation (String location)
      Creates a tokenizer for the retained CMap bytes.
      Specified by:
      getLocation in interface ICMapLocation
      Parameters:
      location - ignored because this implementation has one in-memory source
      Returns:
      a new tokenizer over the retained bytes