|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object org.simBio.serialize.xml.XMLSerializer
public class XMLSerializer
XML serializer. It constructs models from XML, and writes them to XML.
モデルをXMLから構築し、書き出す。
コンストラクタの概要 | |
---|---|
XMLSerializer(org.xml.sax.InputSource source)
An XMLSerializer constructor which takes an XML input source as a parameter. |
|
XMLSerializer(org.xml.sax.InputSource source,
java.lang.ClassLoader loader)
An XMLSerializer constructor which takes an XML input source and a class loader as parameters. |
|
XMLSerializer(java.io.Reader input)
An XMLSerializer constructor which takes an XML file Reader as a parameter. |
|
XMLSerializer(java.lang.String uri)
Set location of the xml file and set default tags. |
メソッドの概要 | |
---|---|
java.net.URL[] |
getCodebases()
This returns the search path of URLs for loading classes |
Component |
getComponent(java.lang.String className)
Return Class instance designated by the complete class name. child nodes are created. |
Component |
read()
Deserialize from xml file. |
void |
setEncoding(java.lang.String encoding)
Set source encoding. |
void |
update(Component component,
java.io.OutputStream stream,
org.xml.sax.InputSource original)
Updates an XML file. |
void |
update(Component component,
java.lang.String uri,
java.io.Reader reference)
Updates an XML file. |
void |
write(Component component)
Serialize to the xml file. |
void |
write(Component component,
java.lang.String uri)
Serializes a component to the xml file. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public XMLSerializer(org.xml.sax.InputSource source, java.lang.ClassLoader loader)
source
- an xml of a modelloader
- where to find a classpublic XMLSerializer(org.xml.sax.InputSource source)
source
- model xmlpublic XMLSerializer(java.lang.String uri)
uri
- the location of the xml filepublic XMLSerializer(java.io.Reader input)
input
- Reader of the xml fileメソッドの詳細 |
---|
public void write(Component component) throws java.io.IOException
component
- component node of the model tree
java.io.IOException
public void write(Component component, java.lang.String uri) throws java.io.IOException
Serializer
内の write
component
- component node of the model treeuri
- location of the xml file
java.io.IOException
public Component read() throws java.lang.InstantiationException
Serializer
内の read
java.lang.InstantiationException
Serializer.read()
public void setEncoding(java.lang.String encoding)
encoding
- character encoding of the XML sourcepublic Component getComponent(java.lang.String className) throws java.lang.InstantiationException
className
- complete class name
java.lang.InstantiationException
public void update(Component component, java.lang.String uri, java.io.Reader reference) throws java.io.IOException
component
- component node of the model treeuri
- system identifier for an input sourcereference
- Reader for an XML input source
java.io.IOException
Serializer
public void update(Component component, java.io.OutputStream stream, org.xml.sax.InputSource original)
Serializer
内の update
component
- component node of the model treestream
- output stream which will be written tooriginal
- original XML input sourcepublic java.net.URL[] getCodebases()
Serializer
内の getCodebases
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |