org.simBio.sim.dm.util
クラス DOMHandler

java.lang.Object
  上位を拡張 org.simBio.sim.dm.util.DOMHandler

public class DOMHandler
extends java.lang.Object

DOMツリーを扱うクラス。

バージョン:
$Id: DOMHandler.java,v 1.2 2007/09/10 06:30:00 mikaelwing Exp $
作成者:
Shohei Hido

コンストラクタの概要
DOMHandler()
           
 
メソッドの概要
static org.w3c.dom.Document getCapsuledDocument(org.w3c.dom.Node node)
          Adding a Node to a new instance of DOM Document.
static java.io.InputStream getCapsuledInputStream(org.w3c.dom.Node node)
          Adding a Node to a new instance of DOM Document and return document as input stream.
static java.io.InputStream getDocumentAsInputStream(org.w3c.dom.Node node)
          Get document as input stream.
static java.io.BufferedReader getDocumentAsReader(org.w3c.dom.Node node)
          Get document as buffered reader.
static org.w3c.dom.Document newInstance()
          Create a new instance of DOM Document.
static org.w3c.dom.Document newInstance(java.lang.String qualifiedName)
          Create a new instance of DOM Document.
static org.w3c.dom.Document parseXML(java.io.InputStream input)
          Parse XML-file.
static void writeXML(org.w3c.dom.Document doc, java.io.OutputStream output)
          Write XML-file.
static void writeXML(org.w3c.dom.Node node, java.io.OutputStream output)
          Write XML-file.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DOMHandler

public DOMHandler()
メソッドの詳細

parseXML

public static org.w3c.dom.Document parseXML(java.io.InputStream input)
Parse XML-file.

パラメータ:
input - XML-file as InputStream
戻り値:
DOM Document
例外:
java.lang.RuntimeException - if error parsing XML

writeXML

public static void writeXML(org.w3c.dom.Document doc,
                            java.io.OutputStream output)
Write XML-file.

パラメータ:
doc - DOM Document
output - XML-file as OutputStream

newInstance

public static org.w3c.dom.Document newInstance()
Create a new instance of DOM Document.

戻り値:
DOM Document

newInstance

public static org.w3c.dom.Document newInstance(java.lang.String qualifiedName)
Create a new instance of DOM Document.

パラメータ:
qualifiedName - of the DOM Document
戻り値:
DOM Document

getCapsuledDocument

public static org.w3c.dom.Document getCapsuledDocument(org.w3c.dom.Node node)
Adding a Node to a new instance of DOM Document.

パラメータ:
node -
戻り値:
DOM Document

writeXML

public static void writeXML(org.w3c.dom.Node node,
                            java.io.OutputStream output)
Write XML-file.

パラメータ:
node -
output - XML-file as OutputStream

getDocumentAsReader

public static java.io.BufferedReader getDocumentAsReader(org.w3c.dom.Node node)
Get document as buffered reader.

パラメータ:
node -
戻り値:
BufferedReader

getDocumentAsInputStream

public static java.io.InputStream getDocumentAsInputStream(org.w3c.dom.Node node)
Get document as input stream.

パラメータ:
node -
戻り値:
InputStream

getCapsuledInputStream

public static java.io.InputStream getCapsuledInputStream(org.w3c.dom.Node node)
Adding a Node to a new instance of DOM Document and return document as input stream.

パラメータ:
node -
戻り値:
InputStream


???(C) 2002-2007 ?????????????????????