org.exoplatform.services.xml.util
Class XMLProperties

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.String>
          extended by org.exoplatform.services.xml.util.XMLProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>

public class XMLProperties
extends java.util.HashMap<java.lang.String,java.lang.String>

Author : Nhu Dinh Thuan Email:nhudinhthuan@yahoo.com Nov 29, 2006

See Also:
Serialized Form

Field Summary
protected  XMLDocument document
           
protected  XMLNode node_
           
 
Constructor Summary
XMLProperties(java.io.File file, java.lang.String name, boolean readonly)
           
XMLProperties(java.io.InputStream input, java.lang.String name, boolean readonly)
           
 
Method Summary
 byte[] getBytes()
           
protected  XMLNode getNode(XMLNode root, java.lang.String name)
           
 java.io.OutputStream toOutputStream()
           
 void toProperties(XMLDocument xmlDocument, java.lang.String name, boolean readonly)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

document

protected XMLDocument document

node_

protected XMLNode node_
Constructor Detail

XMLProperties

public XMLProperties(java.io.InputStream input,
                     java.lang.String name,
                     boolean readonly)
              throws java.lang.Exception
Throws:
java.lang.Exception

XMLProperties

public XMLProperties(java.io.File file,
                     java.lang.String name,
                     boolean readonly)
              throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

toProperties

public void toProperties(XMLDocument xmlDocument,
                         java.lang.String name,
                         boolean readonly)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getBytes

public byte[] getBytes()
                throws java.lang.Exception
Throws:
java.lang.Exception

toOutputStream

public java.io.OutputStream toOutputStream()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getNode

protected XMLNode getNode(XMLNode root,
                          java.lang.String name)


Copyright © 2012 eXo Platform SAS. All Rights Reserved.