pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1601961 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/encoding/Encoding.java
Date Wed, 11 Jun 2014 17:25:38 GMT
Author: lehmi
Date: Wed Jun 11 17:25:38 2014
New Revision: 1601961

URL: http://svn.apache.org/r1601961
Log:
PDFBOX-2136: added method getCodeToNameMap

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/encoding/Encoding.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/encoding/Encoding.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/encoding/Encoding.java?rev=1601961&r1=1601960&r2=1601961&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/encoding/Encoding.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/encoding/Encoding.java Wed Jun 11
17:25:38 2014
@@ -17,7 +17,7 @@
 package org.apache.fontbox.encoding;
 
 import java.io.IOException;
-
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -204,4 +204,15 @@ public abstract class Encoding
         }
         return character;
     }
+    
+    /**
+     * Returns an unmodifiable view of the Code2Name mapping.
+     * 
+     * @return the Code2Name map
+     */
+    public Map<Integer, String> getCodeToNameMap()
+    {
+        return Collections.unmodifiableMap(codeToName);
+    }
+
 }
\ No newline at end of file



Mime
View raw message