org.apache.batik.xml.XMLUtilities.createXMLDeclarationReader()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(150)

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

XMLUtilities.createXMLDeclarationReader介绍

[英]Creates a reader from the given input stream and encoding. This method assumes the input stream working buffer is at least 128 byte long. The input stream is restored before this method returns. The 4 first bytes are skipped before creating the reader.
[中]根据给定的输入流和编码创建读取器。此方法假定输入流工作缓冲区至少有128字节长。在该方法返回之前,将还原输入流。在创建读卡器之前,将跳过前4个字节。

代码示例

代码示例来源:origin: apache/batik

Reader r = createXMLDeclarationReader(pbis, "UTF8");
  String enc = getXMLDeclarationEncoding(r, "UTF8");
  return new InputStreamReader(pbis, enc);
(buf[2] & 0x00FF) == 0x00a7 &&
(buf[3] & 0x00FF) == 0x0094) {
Reader r = createXMLDeclarationReader(pbis, "CP037");
String enc = getXMLDeclarationEncoding(r, "CP037");
return new InputStreamReader(pbis, enc);

代码示例来源:origin: org.apache.xmlgraphics/batik-xml

Reader r = createXMLDeclarationReader(pbis, "UTF8");
  String enc = getXMLDeclarationEncoding(r, "UTF8");
  return new InputStreamReader(pbis, enc);
(buf[2] & 0x00FF) == 0x00a7 &&
(buf[3] & 0x00FF) == 0x0094) {
Reader r = createXMLDeclarationReader(pbis, "CP037");
String enc = getXMLDeclarationEncoding(r, "CP037");
return new InputStreamReader(pbis, enc);

代码示例来源:origin: fr.avianey.apache-xmlgraphics/batik

Reader r = createXMLDeclarationReader(pbis, "UTF8");
  String enc = getXMLDeclarationEncoding(r, "UTF8");
  return new InputStreamReader(pbis, enc);
(buf[2] & 0x00FF) == 0x00a7 &&
(buf[3] & 0x00FF) == 0x0094) {
Reader r = createXMLDeclarationReader(pbis, "CP037");
String enc = getXMLDeclarationEncoding(r, "CP037");
return new InputStreamReader(pbis, enc);

代码示例来源:origin: apache/batik

Reader r = XMLUtilities.createXMLDeclarationReader
    (pbis, "UTF8");
  String enc = XMLUtilities.getXMLDeclarationEncoding
(buf[2] & 0x00FF) == 0x00a7 &&
(buf[3] & 0x00FF) == 0x0094) {
Reader r = XMLUtilities.createXMLDeclarationReader
  (pbis, "CP037");
String enc = XMLUtilities.getXMLDeclarationEncoding

代码示例来源:origin: org.apache.xmlgraphics/batik-xml

Reader r = XMLUtilities.createXMLDeclarationReader
    (pbis, "UTF8");
  String enc = XMLUtilities.getXMLDeclarationEncoding
(buf[2] & 0x00FF) == 0x00a7 &&
(buf[3] & 0x00FF) == 0x0094) {
Reader r = XMLUtilities.createXMLDeclarationReader
  (pbis, "CP037");
String enc = XMLUtilities.getXMLDeclarationEncoding

代码示例来源:origin: fr.avianey.apache-xmlgraphics/batik

Reader r = XMLUtilities.createXMLDeclarationReader
    (pbis, "UTF8");
  String enc = XMLUtilities.getXMLDeclarationEncoding
(buf[2] & 0x00FF) == 0x00a7 &&
(buf[3] & 0x00FF) == 0x0094) {
Reader r = XMLUtilities.createXMLDeclarationReader
  (pbis, "CP037");
String enc = XMLUtilities.getXMLDeclarationEncoding

相关文章