org.apache.commons.validator
Class ValidatorResourcesInitializer

java.lang.Object
  extended byorg.apache.commons.validator.ValidatorResourcesInitializer

Deprecated. ValidatorResources knows how to initialize itself now.

public class ValidatorResourcesInitializer
extends java.lang.Object

Maps an xml file to ValidatorResources.


Field Summary
protected static org.apache.commons.logging.Log log
          Deprecated. Subclasses should use their own logging instance.
protected static java.lang.String[] registrations
          Deprecated. The set of public identifiers, and corresponding resource names, for the versions of the configuration file DTDs that we know about.
 
Constructor Summary
ValidatorResourcesInitializer()
          Deprecated.  
 
Method Summary
static ValidatorResources initialize(java.io.InputStream in)
          Deprecated. Initializes a ValidatorResources based on the InputStream and automatically process the resources.
static ValidatorResources initialize(java.lang.String fileName)
          Deprecated. Initializes a ValidatorResources based on a file path and automatically process the resources.
static void initialize(ValidatorResources resources, java.io.InputStream in)
          Deprecated. Initializes the ValidatorResources based on the InputStream and automatically process the resources.
static void initialize(ValidatorResources resources, java.io.InputStream in, boolean process)
          Deprecated. Initializes a ValidatorResources based on the InputStream and processes the resources based on the boolean passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Deprecated. Subclasses should use their own logging instance.

Logger.


registrations

protected static java.lang.String[] registrations
Deprecated. 
The set of public identifiers, and corresponding resource names, for the versions of the configuration file DTDs that we know about. There MUST be an even number of Strings in this list!

Constructor Detail

ValidatorResourcesInitializer

public ValidatorResourcesInitializer()
Deprecated. 
Method Detail

initialize

public static ValidatorResources initialize(java.lang.String fileName)
                                     throws java.io.IOException
Deprecated. 
Initializes a ValidatorResources based on a file path and automatically process the resources.

Parameters:
fileName - The file path for the xml resource.
Throws:
java.io.IOException

initialize

public static ValidatorResources initialize(java.io.InputStream in)
                                     throws java.io.IOException
Deprecated. 
Initializes a ValidatorResources based on the InputStream and automatically process the resources.

Parameters:
in - InputStream for the xml resource.
Throws:
java.io.IOException

initialize

public static void initialize(ValidatorResources resources,
                              java.io.InputStream in)
                       throws java.io.IOException
Deprecated. 
Initializes the ValidatorResources based on the InputStream and automatically process the resources.

Parameters:
resources - Resources to initialize.
in - InputStream for the xml resource.
Throws:
java.io.IOException

initialize

public static void initialize(ValidatorResources resources,
                              java.io.InputStream in,
                              boolean process)
                       throws java.io.IOException
Deprecated. 
Initializes a ValidatorResources based on the InputStream and processes the resources based on the boolean passed in.

Parameters:
resources - Resources to initialize.
in - InputStream for the xml resource.
process - Whether or not to call process on ValidatorResources.
Throws:
java.io.IOException


Copyright © 2002-2004 The Apache Software Foundation. All Rights Reserved.