com.sun.org.apache.xml.internal.serialize.OutputFormat.getEncoding()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中com.sun.org.apache.xml.internal.serialize.OutputFormat.getEncoding()方法的一些代码示例,展示了OutputFormat.getEncoding()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputFormat.getEncoding()方法的具体详情如下:
包路径:com.sun.org.apache.xml.internal.serialize.OutputFormat
类名称:OutputFormat
方法名:getEncoding

OutputFormat.getEncoding介绍

[英]Returns the specified encoding. If no encoding was specified, the default is always "UTF-8".
[中]返回指定的编码。如果未指定编码,则默认值始终为“UTF-8”。

代码示例

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
 * Returns the last printable character based on the selected
 * encoding. Control characters and non-printable characters
 * are always printed as character references.
 */
public char getLastPrintable()
{
  if ( getEncoding() != null &&
     ( getEncoding().equalsIgnoreCase( "ASCII" ) ) )
    return 0xFF;
  else
    return 0xFFFF;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
 * Returns the last printable character based on the selected
 * encoding. Control characters and non-printable characters
 * are always printed as character references.
 */
public char getLastPrintable()
{
  if ( getEncoding() != null &&
     ( getEncoding().equalsIgnoreCase( "ASCII" ) ) )
    return 0xFF;
  else
    return 0xFFFF;
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

private void copySettings(XMLSerializer src, XMLSerializer dest) {
  dest.fDOMErrorHandler = fErrorHandler;
  dest._format.setEncoding(src._format.getEncoding());
  dest._format.setLineSeparator(src._format.getLineSeparator());
  dest.fDOMFilter = src.fDOMFilter;
}//copysettings

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

private void copySettings(XMLSerializer src, XMLSerializer dest) {
  dest.fDOMErrorHandler = fErrorHandler;
  dest._format.setEncoding(src._format.getEncoding());
  dest._format.setLineSeparator(src._format.getLineSeparator());
  dest.fDOMFilter = src.fDOMFilter;
}//copysettings

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

buffer.append( "1.0" );
buffer.append( '"' );
String format_encoding =  _format.getEncoding();
if (format_encoding != null) {
  buffer.append( " encoding=\"" );

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

buffer.append( "1.0" );
buffer.append( '"' );
String format_encoding =  _format.getEncoding();
if (format_encoding != null) {
  buffer.append( " encoding=\"" );

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

buffer.append( "1.0" );
buffer.append( '"' );
String format_encoding =  _format.getEncoding();
if (format_encoding != null) {
  buffer.append( " encoding=\"" );

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

buffer.append( "1.0" );
buffer.append( '"' );
String format_encoding =  _format.getEncoding();
if (format_encoding != null) {
  buffer.append( " encoding=\"" );

相关文章