|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.solab.iso8583.parse.ConfigParser
public class ConfigParser
This class is used to parse a XML configuration file and configure a MessageFactory with the values from it.
Constructor Summary | |
---|---|
ConfigParser()
|
Method Summary | |
---|---|
static void |
configureFromClasspathConfig(MessageFactory mfact,
String path)
Configures a MessageFactory using the configuration file at the path specified (will be searched within the classpath using the MessageFactory's ClassLoader). |
static void |
configureFromDefault(MessageFactory mfact)
Configures a MessageFactory using the default configuration file j8583.xml. |
static MessageFactory |
createDefault()
Creates a message factory configured from the default file, which is j8583.xml located in the root of the classpath. |
static MessageFactory |
createFromClasspathConfig(String path)
Creates a message factory from the specified path inside the classpath. |
static MessageFactory |
createFromUrl(URL url)
Creates a message factory from the file located at the specified URL. |
protected static void |
parse(MessageFactory mfact,
InputStream stream)
Reads the XML from the stream and configures the message factory with its values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigParser()
Method Detail |
---|
public static MessageFactory createDefault() throws IOException
IOException
public static MessageFactory createFromClasspathConfig(String path) throws IOException
IOException
public static MessageFactory createFromUrl(URL url) throws IOException
IOException
protected static void parse(MessageFactory mfact, InputStream stream) throws IOException
mfact
- The message factory to be configured with the values read from the XML.stream
- The InputStream containing the XML configuration.
IOException
public static void configureFromDefault(MessageFactory mfact) throws IOException
IOException
public static void configureFromClasspathConfig(MessageFactory mfact, String path) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |