src/java.xml.crypto/share/classes/com/sun/org/apache/xml/internal/security/transforms/implementations/TransformBase64Decode.java
changeset 59240 b3116877866f
parent 54731 81de17a33575
equal deleted inserted replaced
59239:9fe5d0d4e9c5 59240:b3116877866f
   145 
   145 
   146         try {
   146         try {
   147             //Exceptional case there is current not text case testing this(Before it was a
   147             //Exceptional case there is current not text case testing this(Before it was a
   148             //a common case).
   148             //a common case).
   149             Document doc =
   149             Document doc =
   150                 XMLUtils.createDocumentBuilder(false, secureValidation).parse(input.getOctetStream());
   150                 XMLUtils.read(input.getOctetStream(), secureValidation);
   151 
   151 
   152             Element rootNode = doc.getDocumentElement();
   152             Element rootNode = doc.getDocumentElement();
   153             StringBuilder sb = new StringBuilder();
   153             StringBuilder sb = new StringBuilder();
   154             traverseElement(rootNode, sb);
   154             traverseElement(rootNode, sb);
   155             byte[] decodedBytes = XMLUtils.decode(sb.toString());
   155             byte[] decodedBytes = XMLUtils.decode(sb.toString());