ch.javasoft.xml.config
Class StreamConfigParser

java.lang.Object
  extended by ch.javasoft.xml.config.StreamConfigParser

public class StreamConfigParser
extends Object

Parses stream elements (or other enclosing elements with a type attribute) of the following types:

                
                        
                               
                
                        
                               
                
                        
                               
                
                        
                
 


Nested Class Summary
static class StreamConfigParser.ConsoleType
           
static class StreamConfigParser.XmlAttribute
           
static class StreamConfigParser.XmlElement
           
static class StreamConfigParser.XmlInputStreamType
           
static class StreamConfigParser.XmlOutputStreamType
           
 
Method Summary
static PrintStream parseConsolePrintStream(Element streamElement)
          Parses (stream element can be named differently):
static FileInputStream parseFileInputStream(Element streamElement)
          Parses (stream element can be named differently):
static FileOutputStream parseFileOutputStream(Element streamElement)
          Parses (stream element can be named differently):
static InputStream parseInputStream(Element streamElement)
          Parses (stream element can be named differently):
static PrintStream parseLoggerStream(Element streamElement)
          Parses (stream element can be named differently):
static OutputStream parseOutputStream(Element streamElement)
          Parses an output stream of any type, see class comments (stream element can be named differently).
static InputStream parseURLInputStream(Element streamElement)
          Parses (stream element can be named differently):
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseOutputStream

public static OutputStream parseOutputStream(Element streamElement)
                                      throws XmlConfigException
Parses an output stream of any type, see class comments (stream element can be named differently).

Throws:
XmlConfigException

parseFileOutputStream

public static FileOutputStream parseFileOutputStream(Element streamElement)
                                              throws XmlConfigException
Parses (stream element can be named differently):
                
                                                             
                
 

Throws:
XmlConfigException

parseConsolePrintStream

public static PrintStream parseConsolePrintStream(Element streamElement)
                                           throws XmlConfigException
Parses (stream element can be named differently):
                
                        
                               
 

Throws:
XmlConfigException

parseLoggerStream

public static PrintStream parseLoggerStream(Element streamElement)
                                     throws XmlConfigException
Parses (stream element can be named differently):
                
                        
                
 

Throws:
XmlConfigException

parseInputStream

public static InputStream parseInputStream(Element streamElement)
                                    throws XmlConfigException
Parses (stream element can be named differently):
                
                                                             
                
                
                                                                
                
                
                                                             
                
 

Throws:
XmlConfigException

parseFileInputStream

public static FileInputStream parseFileInputStream(Element streamElement)
                                            throws XmlConfigException
Parses (stream element can be named differently):
                
                                                             
                
 

Throws:
XmlConfigException

parseURLInputStream

public static InputStream parseURLInputStream(Element streamElement)
                                       throws XmlConfigException
Parses (stream element can be named differently):
                
                                                              
                
 

Throws:
XmlConfigException