de.opsdesign.yax
Class XMLDeclaration

java.lang.Object
  extended by de.opsdesign.yax.XMLDeclaration

public class XMLDeclaration
extends java.lang.Object


Field Summary
static java.lang.String ISO_8859_1
           
static java.lang.String UTF_8
           
 
Constructor Summary
XMLDeclaration()
           
 
Method Summary
static XMLDeclaration findXMLDeclaration(java.lang.String xmlString)
          seeks an XMLDeclaration within string
static java.lang.String getAttributeValue(java.lang.String source, java.lang.String attributeName)
          seeks an attribute within a string and returns its value
 java.lang.String getEncoding()
           
 java.lang.String getVersion()
           
 void setEncoding(java.lang.String encoding)
           
 void setVersion(java.lang.String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISO_8859_1

public static final java.lang.String ISO_8859_1
See Also:
Constant Field Values

UTF_8

public static final java.lang.String UTF_8
See Also:
Constant Field Values
Constructor Detail

XMLDeclaration

public XMLDeclaration()
Method Detail

findXMLDeclaration

public static XMLDeclaration findXMLDeclaration(java.lang.String xmlString)
seeks an XMLDeclaration within string

Parameters:
xmlString - string to examine.
Returns:
XMLDeclaration if the xmlString contains an XML Declaration null if the xmlString do not contain an XML Declaration

getAttributeValue

public static java.lang.String getAttributeValue(java.lang.String source,
                                                 java.lang.String attributeName)
seeks an attribute within a string and returns its value

Parameters:
source - string to examine.
attributeName - attributes name
Returns:
attribute value if the attribute was found within the source string null if the attribute was not found within the source string

getEncoding

public java.lang.String getEncoding()

setEncoding

public void setEncoding(java.lang.String encoding)

getVersion

public java.lang.String getVersion()

setVersion

public void setVersion(java.lang.String version)


Copyright © 2008 OPS Design GmbH. All Rights Reserved.