public XMLStreamWriter createXMLStreamWriter(OutputStream out) throws XMLStreamException { return createXMLStreamWriter(out, null); }
@Override public XMLStreamWriter createXMLStreamWriter(OutputStream out) throws XMLStreamException { return createXMLStreamWriter(out, null); }
public XMLStreamWriter createXMLStreamWriter(OutputStream out) throws XMLStreamException { return createXMLStreamWriter(out, null); }
public XMLStreamWriter createXMLStreamWriter(OutputStream out) throws XMLStreamException { return createXMLStreamWriter(out, null); }
@Override public XMLStreamWriter createXMLStreamWriter(OutputStream out) throws XMLStreamException { return createXMLStreamWriter(out, null); }
public XMLStreamWriter createXMLStreamWriter(OutputStream out) throws XMLStreamException { return createXMLStreamWriter(out, null); }
@Override public XMLStreamWriter createXMLStreamWriter(OutputStream out) throws XMLStreamException { return createXMLStreamWriter(out, null); }
public XMLStreamWriter createXMLStreamWriter(OutputStream out) throws XMLStreamException { return createXMLStreamWriter(out, null); }
/** * Opens XML file to write to. * * @param xmlw * WstxOutputFactory * @return XMLStreamWriter2 * @throws InvalidPluginArgumentException * @throws XMLStreamException * @throws IOException */ protected XMLStreamWriter2 getXMLStreamWriter2(WstxOutputFactory xmlw) throws InvalidPluginArgumentException, XMLStreamException, IOException { // get filename from arguments String fileName = ((String) args .getUniqueValue(FileArgumentDefinition.EXPORT_FILE)).trim(); fireEventOccurred(new GeneralOutputEvent( "fileName set to: " + fileName, "[Export - start]")); if (!fileName.toLowerCase().endsWith(".xml")) { fileName += ".xml"; } File file = new File(fileName); // output file writer outStream = new FileOutputStream(file); // wrap into XML stream XMLStreamWriter2 xmlWriteStream = (XMLStreamWriter2) xmlw .createXMLStreamWriter(outStream, CharsetNames.CS_UTF8); return xmlWriteStream; }
.createXMLStreamWriter(outStream, CharsetNames.CS_UTF8);
.createXMLStreamWriter(new FileOutputStream( new File(workingDir, currentConceptDir + File.separator + concept.getId() .createXMLStreamWriter(new FileOutputStream( new File(workingDir, conceptClassIndex + File.separator .createXMLStreamWriter( new FileOutputStream(relationsFile), enc);
new File(workingDir, file).getParentFile().mkdirs(); XMLStreamWriter2 xmlw = (XMLStreamWriter2) xmlf.createXMLStreamWriter( new FileOutputStream(new File(workingDir, file)), enc); xmlw = (XMLStreamWriter2) xmlf.createXMLStreamWriter( new FileOutputStream(new File(workingDir, ccFile)), enc); xmlw = (XMLStreamWriter2) xmlf.createXMLStreamWriter( new FileOutputStream(new File(workingDir, atFile)), enc); xmlw = (XMLStreamWriter2) xmlf.createXMLStreamWriter( new FileOutputStream(new File(workingDir, etFile)), enc); xmlw = (XMLStreamWriter2) xmlf.createXMLStreamWriter( new FileOutputStream(new File(workingDir, usFile)), enc); xmlw = (XMLStreamWriter2) xmlf.createXMLStreamWriter( new FileOutputStream(new File(workingDir, rtFile)), enc); xmlw = (XMLStreamWriter2) xmlf.createXMLStreamWriter( new FileOutputStream(new File(workingDir, rtsFile)), enc);
String metadataDir, String relativityToRoot, String file) throws FileNotFoundException, XMLStreamException { XMLStreamWriter2 xmlw = (XMLStreamWriter2) xmlf.createXMLStreamWriter( new FileOutputStream(new File(workingDir, file)), enc);