public class EncodingOptions
extends java.lang.Object
This represents 3 options:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_JAVA_CHARSET
Default value of Java character set used in export.
|
static java.lang.String |
DEFAULT_XML_CHARSET
Default value of XML character set used in export.
|
static java.lang.String |
DEFAULT_XML_VERSION
Default value of XML version.
|
Constructor and Description |
---|
EncodingOptions()
Construct a new
EncodingOptions using the default values that could
be overriden using bean-style configuration. |
EncodingOptions(java.lang.String pXmlVersion,
java.lang.String pJavaCharset,
java.lang.String pXmlCharset)
Constructs a new
EncodingOptions with the given parameters. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJavaCharset()
Returns the Java character set defined in this
EncodingOptions . |
java.lang.String |
getXmlCharset()
Returns the XML character set defined in this
EncodingOptions . |
java.lang.String |
getXmlVersion()
Returns the XML version defined in this
EncodingOptions . |
void |
setJavaCharset(java.lang.String pJavaCharset)
Defines the Java character set used to export an ODI object.
|
void |
setXmlCharset(java.lang.String pXmlCharset)
Defines the XML character set used to export an ODI object.
|
void |
setXmlVersion(java.lang.String pXmlVersion)
Defines the XML version used to export an ODI object.
|
public static final java.lang.String DEFAULT_XML_CHARSET
public static final java.lang.String DEFAULT_JAVA_CHARSET
public static final java.lang.String DEFAULT_XML_VERSION
public EncodingOptions()
EncodingOptions
using the default values that could
be overriden using bean-style configuration.public EncodingOptions(java.lang.String pXmlVersion, java.lang.String pJavaCharset, java.lang.String pXmlCharset)
EncodingOptions
with the given parameters.pXmlVersion
- version of XMLpJavaCharset
- a value for Java character setpXmlCharset
- a value for XML character setpublic java.lang.String getJavaCharset()
EncodingOptions
.
The XML file produced when exporting an ODI object will comply to this character set. See http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html for possible values (under the Canonical Name for java.io and java.lang API column).
setJavaCharset(String)
public void setJavaCharset(java.lang.String pJavaCharset)
The XML file produced when exporting an ODI object will comply to this character set. See http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html for possible values (under the Canonical Name for java.io and java.lang API column).
pJavaCharset
- a value for Java character setjava.lang.IllegalArgumentException
- if the given parameters are null or emptygetJavaCharset()
public java.lang.String getXmlCharset()
EncodingOptions
.
The export XML file produced when exporting an ODI object will comply to this character set. You can see the full list of character encoding names registered by IANA (long). http://www.iana.org/assignments/character-sets.
In practice, a few encodings will be preferred, most likely: ISO-8859-1 (Latin-1), US-ASCII, UTF-16, the other encodings in the ISO-8859 series, iso-2022-jp, euc-kr, and so on.
setXmlCharset(String)
public void setXmlCharset(java.lang.String pXmlCharset)
The export XML file produced when exporting an ODI object will comply to this character set. You can see the full list of character encoding names registered by IANA (long). http://www.iana.org/assignments/character-sets.
In practice, a few encodings will be preferred, most likely: ISO-8859-1 (Latin-1), US-ASCII, UTF-16, the other encodings in the ISO-8859 series, iso-2022-jp, euc-kr, and so on.
pXmlCharset
- the XML character setgetXmlCharset()
public java.lang.String getXmlVersion()
EncodingOptions
.setXmlVersion(String)
public void setXmlVersion(java.lang.String pXmlVersion)
The export XML file produced when exporting an ODI object will comply to this version.
pXmlVersion
- the XML versiongetXmlVersion()