/** * Serializes the given result sequence onto the given output stream. * This method does not auto-close the output stream. * * @param nodes * the result sequence to serialize * @param out * the stream to write to * @throws IOException * if an I/O error occured */ public void write(Nodes nodes, OutputStream out) throws IOException { SequenceSerializer ser; if (W3C_ALGORITHM.equals(getAlgorithm())) { ser = new W3CSerializer(out, getEncoding()); } else { ser = new WrapSerializer(out, getEncoding()); } ser.setIndent(getIndent()); ser.setUnicodeNormalizationFormC(getUnicodeNormalizationFormC()); // ser.setLineSeparator(getLineSeparator()); // ser.setMaxLength(getMaxLength()); // ser.setPreserveBaseURI(getPreserveBaseURI()); ser.write(nodes); }
writeNamespaceDeclarationsInScope(element); } else { super.writeNamespaceDeclarations(element);
writeNamespaceDeclarationsInScope(element); } else { super.writeNamespaceDeclarations(element);
/** * Serializes the given result sequence onto the given output stream. * This method does not auto-close the output stream. * * @param nodes * the result sequence to serialize * @param out * the stream to write to * @throws IOException * if an I/O error occured */ public void write(Nodes nodes, OutputStream out) throws IOException { SequenceSerializer ser; if (W3C_ALGORITHM.equals(getAlgorithm())) { ser = new W3CSerializer(out, getEncoding()); } else { ser = new WrapSerializer(out, getEncoding()); } ser.setIndent(getIndent()); ser.setUnicodeNormalizationFormC(getUnicodeNormalizationFormC()); // ser.setLineSeparator(getLineSeparator()); // ser.setMaxLength(getMaxLength()); // ser.setPreserveBaseURI(getPreserveBaseURI()); ser.write(nodes); }