de.opsdesign.yax
Class XMLDeclaration
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
XMLDeclaration
public XMLDeclaration()
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.