erland.util
Class XMLParser

java.lang.Object
  extended by erland.util.XMLParser

public class XMLParser
extends Object

This is a singleton object that makes it possible to set and get the currently active XML parser

Author:
Erland Isaksson

Constructor Summary
XMLParser()
           
 
Method Summary
static XMLParserInterface getInstance()
          Get the currently active XML parser, if no parser has been set previously it will be created automatically when this method is called
static void setInstance(XMLParserInterface parser)
          Change the currently active XML parser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLParser

public XMLParser()
Method Detail

setInstance

public static void setInstance(XMLParserInterface parser)
Change the currently active XML parser

Parameters:
parser - The new XML parser to user

getInstance

public static XMLParserInterface getInstance()
Get the currently active XML parser, if no parser has been set previously it will be created automatically when this method is called

Returns:
The currently active XML parser


Copyright © 2003-2005 Erland Isaksson. All Rights Reserved.