/*
* 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: TransletOutputHandlerFactory.java,v 1.2.4.2 2005/09/15 19:12:05 jeffsuttor Exp $
*/
/**
* @author Santiago Pericas-Geertsen
*/
public class TransletOutputHandlerFactory {
private boolean _useServicesMechanism;
return new TransletOutputHandlerFactory(true);
}
return new TransletOutputHandlerFactory(useServicesMechanism);
}
}
}
}
}
}
}
}
}
_lexHandler = lex;
}
}
: null;
}
}
return (_handler instanceof SAX2StAXEventWriter) ? ((SAX2StAXEventWriter) _handler).getEventWriter() : null;
}
}
return (_handler instanceof SAX2StAXStreamWriter) ? ((SAX2StAXStreamWriter) _handler).getStreamWriter() : null;
}
}
}
{
switch (_outputType)
{
case STREAM :
{
result = new ToUnknownStream();
}
{
result = new ToXMLStream();
}
{
result = new ToHTMLStream();
}
{
result = new ToTextStream();
}
{
}
{
}
else
{
}
return result;
case DOM :
_handler = (_node != null) ? new SAX2DOM(_node, _nextSibling, _useServicesMechanism) : new SAX2DOM(_useServicesMechanism);
// falls through
case STAX :
if (_xmlStAXEventWriter != null) {
} else if (_xmlStAXStreamWriter != null) {
}
// again falls through - Padmaja Vedula
case SAX :
{
}
{
if (_lexHandler == null)
{
}
else
{
result =
new ToXMLSAXHandler(
}
}
{
if (_lexHandler == null)
{
}
else
{
result =
new ToHTMLSAXHandler(
}
}
{
if (_lexHandler == null)
{
}
else
{
result =
new ToTextSAXHandler(
}
}
return result;
}
return null;
}
}