jdk/src/share/classes/com/sun/org/apache/xml/internal/security/c14n/implementations/UtfHelpper.java
equal
deleted
inserted
replaced
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 |