jdk/src/share/classes/com/sun/org/apache/xml/internal/security/c14n/implementations/UtfHelpper.java
changeset 10694 cf59e2badd14
parent 1337 e8d6cef36199
child 18780 f47b920867e7
equal deleted inserted replaced
10693:6e9ebed2e783 10694:cf59e2badd14
     4 import java.io.OutputStream;
     4 import java.io.OutputStream;
     5 import java.util.Map;
     5 import java.util.Map;
     6 
     6 
     7 public class UtfHelpper {
     7 public class UtfHelpper {
     8 
     8 
     9         final static void writeByte(final String str,final OutputStream out,Map cache) throws IOException {
     9         final static void writeByte(final String str,final OutputStream out,Map<String,byte[]> cache) throws IOException {
    10                    byte []result=(byte[]) cache.get(str);
    10                    byte []result= cache.get(str);
    11                    if (result==null) {
    11                    if (result==null) {
    12                            result=getStringInUtf8(str);
    12                            result=getStringInUtf8(str);
    13                            cache.put(str,result);
    13                            cache.put(str,result);
    14                    }
    14                    }
    15 
    15