Save This Page
Home » pdfbox-1.1.0-src » org.apache.fontbox.cmap » [javadoc | source]
org.apache.fontbox.cmap
public class: CMap [javadoc | source]
java.lang.Object
   org.apache.fontbox.cmap.CMap
This class represents a CMap file.
Constructor:
 public CMap() 
Method from org.apache.fontbox.cmap.CMap Summary:
addCodespaceRange,   addMapping,   getCodeSpaceRanges,   hasOneByteMappings,   hasTwoByteMappings,   isInCodeSpaceRanges,   isInCodeSpaceRanges,   lookup,   useCmap
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.fontbox.cmap.CMap Detail:
 public  void addCodespaceRange(CodespaceRange range) 
    This will add a codespace range.
 public  void addMapping(byte[] src,
    String dest) throws IOException 
    This will add a mapping.
 public List<CodespaceRange> getCodeSpaceRanges() 
    Getter for property codeSpaceRanges.
 public boolean hasOneByteMappings() 
    This will tell if this cmap has any one byte mappings.
 public boolean hasTwoByteMappings() 
    This will tell if this cmap has any two byte mappings.
 public boolean isInCodeSpaceRanges(byte[] code) 
    Check whether the given byte array is in codespace ranges or not.
 public boolean isInCodeSpaceRanges(byte[] code,
    int offset,
    int length) 
    Check whether the given byte array is in codespace ranges or not.
 public String lookup(byte[] code,
    int offset,
    int length) 
    This will perform a lookup into the map.
 public  void useCmap(CMap cmap) 
    Implementation of the usecmap operator. This will copy all of the mappings from one cmap to another.