gpt4 book ai didi

org.apache.chemistry.opencmis.commons.impl.XMLUtils.createWriter()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 06:28:40 27 4
gpt4 key购买 nike

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

XMLUtils.createWriter介绍

[英]Creates a new XML writer.
[中]创建一个新的XML编写器。

代码示例

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Starts the document and sets the namespaces.
 */
public void startDocument(OutputStream out, Map<String, String> namespaces) throws XMLStreamException {
  // create a writer
  writer = XMLUtils.createWriter(out);
  // start the document
  writer.writeStartDocument(IOUtils.UTF8, "1.0");
  setNamespaces(namespaces);
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-impl

/**
 * Serializes the type definition to XML, using the format defined in the
 * CMIS specification.
 * 
 * The XML is UTF-8 encoded and the stream is not closed.
 */
public static void writeToXML(TypeDefinition type, OutputStream stream) throws XMLStreamException {
  if (type == null) {
    throw new IllegalArgumentException("Type must be set!");
  }
  if (stream == null) {
    throw new IllegalArgumentException("Output stream must be set!");
  }
  XMLStreamWriter writer = XMLUtils.createWriter(stream);
  XMLUtils.startXmlDocument(writer);
  XMLConverter.writeTypeDefinition(writer, CmisVersion.CMIS_1_1, XMLConstants.NAMESPACE_CMIS, type);
  XMLUtils.endXmlDocument(writer);
  writer.close();
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

@Override
  public void write(OutputStream out) throws Exception {
    XMLStreamWriter writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeAcl(writer, cmisVersion, true, acl);
    XMLUtils.endXmlDocument(writer);
  }
});

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

@Override
  public void write(OutputStream out) throws Exception {
    XmlSerializer writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeAcl(writer, cmisVersion, true, acl);
    XMLUtils.endXmlDocument(writer);
  }
});

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

protected void writeAclXML(Acl acl, CmisVersion cmisVersion, OutputStream out) throws XMLStreamException {
    XMLStreamWriter writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeAcl(writer, cmisVersion, true, acl);
    XMLUtils.endXmlDocument(writer);
  }
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

@Override
  public void write(OutputStream out) throws Exception {
    XmlSerializer writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeQuery(writer, cmisVersion, query);
    XMLUtils.endXmlDocument(writer);
  }
});

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

@Override
  public void write(OutputStream out) throws Exception {
    XMLStreamWriter writer = XMLUtils.createWriter(out);
    XMLUtils.startXmlDocument(writer);
    XMLConverter.writeQuery(writer, cmisVersion, query);
    XMLUtils.endXmlDocument(writer);
  }
});

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

XMLStreamWriter writer = XMLUtils.createWriter(bufferStream);

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

XMLStreamWriter writer = XMLUtils.createWriter(out);

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

XMLStreamWriter writer = XMLUtils.createWriter(response.getOutputStream());
XMLUtils.startXmlDocument(writer);
XMLConverter.writeAllowableActions(writer, context.getCmisVersion(), true, allowableActions);

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

XmlSerializer writer = XMLUtils.createWriter(out);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com