langtools/src/share/classes/com/sun/tools/javac/jvm/ClassFile.java
changeset 1260 a772ba9ba43d
parent 10 06bc494ca11e
child 1264 076a3cde30d5
equal deleted inserted replaced
1259:61142e0aeb3f 1260:a772ba9ba43d
   106 
   106 
   107     /** Return internal representation of given name,
   107     /** Return internal representation of given name,
   108      *  converting '/' to '.'.
   108      *  converting '/' to '.'.
   109      */
   109      */
   110     public static byte[] internalize(Name name) {
   110     public static byte[] internalize(Name name) {
   111         return internalize(name.table.names, name.index, name.len);
   111         return internalize(name.getByteArray(), name.getByteOffset(), name.getByteLength());
   112     }
   112     }
   113 
   113 
   114     /** Return external representation of buf[offset..offset+len-1],
   114     /** Return external representation of buf[offset..offset+len-1],
   115      *  converting '.' to '/'.
   115      *  converting '.' to '/'.
   116      */
   116      */
   126 
   126 
   127     /** Return external representation of given name,
   127     /** Return external representation of given name,
   128      *  converting '/' to '.'.
   128      *  converting '/' to '.'.
   129      */
   129      */
   130     public static byte[] externalize(Name name) {
   130     public static byte[] externalize(Name name) {
   131         return externalize(name.table.names, name.index, name.len);
   131         return externalize(name.getByteArray(), name.getByteOffset(), name.getByteLength());
   132     }
   132     }
   133 
   133 
   134 /************************************************************************
   134 /************************************************************************
   135  * Name-and-type
   135  * Name-and-type
   136  ***********************************************************************/
   136  ***********************************************************************/