org.openmdx.kernel.xml
Class XMLDeclaration

java.lang.Object
  extended by org.openmdx.kernel.xml.XMLDeclaration

public class XMLDeclaration
extends Object

XML Declaration


Constructor Summary
XMLDeclaration()
          Constructor
XMLDeclaration(String version, String encoding, String standalone)
          Constructor
XMLDeclaration(XMLDeclaration that)
          Constructor
 
Method Summary
 String getEncoding()
           
 String getStandalone()
           
 String getVersion()
           
static XMLDeclaration readXMLDeclaration(InputStream in)
          Consume the XML Declaration and return it or reset the stream otherwise.
static XMLDeclaration readXMLDeclaration(Reader in)
          Consume the XML Declaration and return it or reset the stream otherwise.
 void setQuotedEncoding(String encoding)
           
 void setQuotedStandalone(String standalone)
           
 void setQuotedVersion(String version)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLDeclaration

public XMLDeclaration()
Constructor


XMLDeclaration

public XMLDeclaration(String version,
                      String encoding,
                      String standalone)
Constructor


XMLDeclaration

public XMLDeclaration(XMLDeclaration that)
Constructor

Method Detail

getEncoding

public String getEncoding()
Returns:
Returns the encoding.

setQuotedEncoding

public void setQuotedEncoding(String encoding)
Parameters:
encoding - The encoding to set.

getStandalone

public String getStandalone()
Returns:
Returns the standalone.

setQuotedStandalone

public void setQuotedStandalone(String standalone)
Parameters:
standalone - The standalone to set.

setQuotedVersion

public void setQuotedVersion(String version)
Parameters:
encoding - The version to set.

getVersion

public String getVersion()
Returns:
Returns the version.

readXMLDeclaration

public static XMLDeclaration readXMLDeclaration(InputStream in)
                                         throws IOException
Consume the XML Declaration and return it or reset the stream otherwise.

Parameters:
in - the stream
regexpFactory -
Returns:
the XML Declaration; or null if none has been specified.
Throws:
IOException

readXMLDeclaration

public static XMLDeclaration readXMLDeclaration(Reader in)
                                         throws IOException
Consume the XML Declaration and return it or reset the stream otherwise.

Parameters:
in - the stream
regexpFactory - TODO
Returns:
the XML Declaration; or null if none has been specified.
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.