/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: Transform.java,v 1.2.4.1 2005/09/12 09:07:33 pvedula Exp $
*/
/**
* @author Jacek Ambroziak
* @author Santiago Pericas-Geertsen
* @author G. Todd Miller
* @author Morten Jorgensen
*/
final public class Transform {
private boolean _isJarFileSpecified = false;
private int _iterations;
}
}
// TODO: at this time we do not do anything with this
// information, attempts to add the jarfile to the CLASSPATH
// were successful via System.setProperty, but the effects
// were not visible to the running JVM. For now we add jarfile
// to CLASSPATH in the wrapper script that calls this program.
// TODO verify jarFile exists...
}
private void doTransform() {
try {
// Create a SAX parser and get the XMLReader object it uses
try {
}
catch (Exception e) {
factory.setNamespaceAware(true);
}
// Set the DOM's DOM builder as the XMLReader's SAX2 content handler
.newInstance();
} else {
}
final DOMEnhancedForDTM dom =
// Pass global parameters
for (int i = 0; i < n; i++) {
}
// Transform the document
if (_iterations == -1) {
}
else if (_iterations > 0) {
for (int i = 0; i < _iterations; i++) {
}
+ (((double) mm) / ((double) _iterations))
+ " ms");
+ (1000.0 / (((double) mm)
/ ((double) _iterations)))
+ " tps");
}
}
catch (TransletException e) {
if (_debug) e.printStackTrace();
e.getMessage());
}
catch (RuntimeException e) {
if (_debug) e.printStackTrace();
e.getMessage());
}
catch (FileNotFoundException e) {
if (_debug) e.printStackTrace();
}
catch (MalformedURLException e) {
if (_debug) e.printStackTrace();
}
catch (ClassNotFoundException e) {
if (_debug) e.printStackTrace();
}
catch (UnknownHostException e) {
if (_debug) e.printStackTrace();
}
catch (SAXException e) {
if (_debug) {
e.printStackTrace();
}
else
}
catch (Exception e) {
if (_debug) e.printStackTrace();
e.getMessage());
}
}
public static void printUsage() {
}
try {
int i;
int iterations = -1;
boolean isJarFileSpecified = false;
// Parse options starting with '-'
uri = true;
}
debug = true;
}
isJarFileSpecified = true;
}
try {
}
catch (NumberFormatException e) {
// ignore
}
}
else {
printUsage();
}
}
// Enough arguments left ?
// Get document file and class name
debug, iterations);
// Parse stylesheet parameters
if (equal > 0) {
}
else {
printUsage();
}
}
}
} else {
printUsage();
}
}
catch (Exception e) {
e.printStackTrace();
}
}
}