java/src/org/apache/qetest/xslwrapper/TraxStreamWrapper.java [200:236]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        File xmlFile = new File(xmlName);
        int xmlLength = new Long(xmlFile.length()).intValue(); //@todo warning: possible overflow
        byte[] xmlBytes = new byte[xmlLength];
        FileInputStream xmlStream = new FileInputStream(xmlFile);
        // Timed: read xml into a byte array
        startTime = System.currentTimeMillis();
        int xmlRetVal = xmlStream.read(xmlBytes);
        xmlRead = System.currentTimeMillis() - startTime;

        // Untimed: create StreamSource and setSystemId
        StreamSource xmlSource = new StreamSource(new ByteArrayInputStream(xmlBytes));
        xmlSource.setSystemId(QetestUtils.filenameToURL(xmlName));

        // Untimed: create StreamResult
        ByteArrayOutputStream outBytes = new ByteArrayOutputStream();
        StreamResult byteResult = new StreamResult(outBytes);
        
        // Untimed: Set any of our options as Attributes on the transformer
        TraxWrapperUtils.setAttributes(transformer, newProcessorOpts);

        // Untimed: Apply any parameters needed
        applyParameters(transformer);

        // Timed: build xml (so to speak) and transform
        startTime = System.currentTimeMillis();
        transformer.transform(xmlSource, byteResult);
        transform = System.currentTimeMillis() - startTime;

        // Timed: writeResults from the byte array
        startTime = System.currentTimeMillis();
        byte[] writeBytes = outBytes.toByteArray(); // Should this be timed too or not?
        FileOutputStream writeStream = new FileOutputStream(resultName);
        writeStream.write(writeBytes);
        writeStream.close();
        resultWrite = System.currentTimeMillis() - startTime;

        long[] times = getTimeArray();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



java/src/org/apache/qetest/xslwrapper/TraxStreamWrapper.java [359:395]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        File xmlFile = new File(xmlName);
        int xmlLength = new Long(xmlFile.length()).intValue(); //@todo warning: possible overflow
        byte[] xmlBytes = new byte[xmlLength];
        FileInputStream xmlStream = new FileInputStream(xmlFile);
        // Timed: read xml into a byte array
        startTime = System.currentTimeMillis();
        int xmlRetVal = xmlStream.read(xmlBytes);
        xmlRead = System.currentTimeMillis() - startTime;

        // Untimed: create StreamSource and setSystemId
        StreamSource xmlSource = new StreamSource(new ByteArrayInputStream(xmlBytes));
        xmlSource.setSystemId(QetestUtils.filenameToURL(xmlName));

        // Untimed: create StreamResult
        ByteArrayOutputStream outBytes = new ByteArrayOutputStream();
        StreamResult byteResult = new StreamResult(outBytes);
        
        // Untimed: Set any of our options as Attributes on the transformer
        TraxWrapperUtils.setAttributes(transformer, newProcessorOpts);

        // Untimed: Apply any parameters needed
        applyParameters(transformer);

        // Timed: build xml (so to speak) and transform
        startTime = System.currentTimeMillis();
        transformer.transform(xmlSource, byteResult);
        transform = System.currentTimeMillis() - startTime;

        // Timed: writeResults from the byte array
        startTime = System.currentTimeMillis();
        byte[] writeBytes = outBytes.toByteArray(); // Should this be timed too or not?
        FileOutputStream writeStream = new FileOutputStream(resultName);
        writeStream.write(writeBytes);
        writeStream.close();
        resultWrite = System.currentTimeMillis() - startTime;

        long[] times = getTimeArray();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



