org.util.xml.io
Class XMLIO

java.lang.Object
  extended by org.util.xml.io.XMLIO

public class XMLIO
extends java.lang.Object

Author:
masaru

Constructor Summary
XMLIO()
           
 
Method Summary
protected static java.net.URL findURL(java.lang.String name)
           
static TagElement read(java.io.File file)
           
static TagElement read(java.io.File file, java.lang.String encoding)
           
static TagElement read(java.io.InputStream in)
           
static TagElement read(java.io.InputStream in, java.lang.String encoding)
           
static TagElement read(java.io.Reader r)
           
static TagElement read(java.lang.String file_name_or_url)
           
static TagElement read(java.lang.StringBuffer xml_text)
           
static TagElement read(java.lang.String file_name_or_url, java.lang.String encoding)
           
static TagElement read(java.net.URL url)
           
static TagElement read(java.net.URL url, java.lang.String encoding)
           
static void write(java.io.File file, Element element)
           
static void write(java.io.Writer writer, Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLIO

public XMLIO()
Method Detail

read

public static TagElement read(java.lang.StringBuffer xml_text)
                       throws java.io.IOException,
                              XMLParseException
Throws:
java.io.IOException
XMLParseException

read

public static TagElement read(java.net.URL url)
                       throws java.io.IOException,
                              XMLParseException
Throws:
java.io.IOException
XMLParseException

read

public static TagElement read(java.net.URL url,
                              java.lang.String encoding)
                       throws java.io.IOException,
                              XMLParseException
Throws:
java.io.IOException
XMLParseException

read

public static TagElement read(java.lang.String file_name_or_url)
                       throws java.io.IOException,
                              XMLParseException
Throws:
java.io.IOException
XMLParseException

read

public static TagElement read(java.lang.String file_name_or_url,
                              java.lang.String encoding)
                       throws java.io.IOException,
                              XMLParseException
Throws:
java.io.IOException
XMLParseException

read

public static TagElement read(java.io.File file)
                       throws java.io.IOException,
                              XMLParseException
Throws:
java.io.IOException
XMLParseException

read

public static TagElement read(java.io.File file,
                              java.lang.String encoding)
                       throws java.io.IOException,
                              XMLParseException
Throws:
java.io.IOException
XMLParseException

read

public static TagElement read(java.io.InputStream in,
                              java.lang.String encoding)
                       throws java.io.IOException,
                              XMLParseException
Throws:
java.io.IOException
XMLParseException

read

public static TagElement read(java.io.InputStream in)
                       throws java.io.IOException,
                              XMLParseException
Throws:
java.io.IOException
XMLParseException

read

public static TagElement read(java.io.Reader r)
                       throws java.io.IOException,
                              XMLParseException
Throws:
java.io.IOException
XMLParseException

findURL

protected static java.net.URL findURL(java.lang.String name)
                               throws java.io.IOException,
                                      XMLParseException
Throws:
java.io.IOException
XMLParseException

write

public static void write(java.io.File file,
                         Element element)
                  throws java.io.IOException,
                         XMLParseException
Throws:
java.io.IOException
XMLParseException

write

public static void write(java.io.Writer writer,
                         Element element)
                  throws java.io.IOException,
                         XMLParseException
Throws:
java.io.IOException
XMLParseException