use of com.sun.xml.bind.marshaller.CharacterEscapeHandler in project OpenAM by OpenRock.
the class MarshallerImpl method createWriter.
public XMLWriter createWriter(Writer w, String encoding) throws JAXBException {
// buffering improves the performance
w = new BufferedWriter(w);
CharacterEscapeHandler ceh = createEscapeHandler(encoding);
XMLWriter xw;
if (isFormattedOutput()) {
DataWriter d = new DataWriter(w, encoding, ceh);
d.setIndentStep(indent);
xw = d;
} else
xw = new XMLWriter(w, encoding, ceh);
xw.setXmlDecl(printXmlDeclaration);
xw.setHeader(header);
return xw;
}
use of com.sun.xml.bind.marshaller.CharacterEscapeHandler in project Payara by payara.
the class MarshallerImpl method createWriter.
public XMLWriter createWriter(Writer w, String encoding) throws JAXBException {
// buffering improves the performance
w = new BufferedWriter(w);
CharacterEscapeHandler ceh = createEscapeHandler(encoding);
XMLWriter xw;
if (isFormattedOutput()) {
DataWriter d = new DataWriter(w, encoding, ceh);
d.setIndentStep(indent);
xw = d;
} else
xw = new XMLWriter(w, encoding, ceh);
xw.setXmlDecl(printXmlDeclaration);
xw.setHeader(header);
return xw;
}
use of com.sun.xml.bind.marshaller.CharacterEscapeHandler in project OpenAM by OpenRock.
the class MarshallerImpl method createWriter.
public XMLWriter createWriter(Writer w, String encoding) throws JAXBException {
// buffering improves the performance
w = new BufferedWriter(w);
CharacterEscapeHandler ceh = createEscapeHandler(encoding);
XMLWriter xw;
if (isFormattedOutput()) {
DataWriter d = new DataWriter(w, encoding, ceh);
d.setIndentStep(indent);
xw = d;
} else
xw = new XMLWriter(w, encoding, ceh);
xw.setXmlDecl(printXmlDeclaration);
xw.setHeader(header);
return xw;
}
use of com.sun.xml.bind.marshaller.CharacterEscapeHandler in project OpenAM by OpenRock.
the class MarshallerImpl method createWriter.
public XMLWriter createWriter(Writer w, String encoding) throws JAXBException {
// buffering improves the performance
w = new BufferedWriter(w);
CharacterEscapeHandler ceh = createEscapeHandler(encoding);
XMLWriter xw;
if (isFormattedOutput()) {
DataWriter d = new DataWriter(w, encoding, ceh);
d.setIndentStep(indent);
xw = d;
} else
xw = new XMLWriter(w, encoding, ceh);
xw.setXmlDecl(printXmlDeclaration);
xw.setHeader(header);
return xw;
}
use of com.sun.xml.bind.marshaller.CharacterEscapeHandler in project OpenAM by OpenRock.
the class MarshallerImpl method createWriter.
public XMLWriter createWriter(Writer w, String encoding) throws JAXBException {
// buffering improves the performance
w = new BufferedWriter(w);
CharacterEscapeHandler ceh = createEscapeHandler(encoding);
XMLWriter xw;
if (isFormattedOutput()) {
DataWriter d = new DataWriter(w, encoding, ceh);
d.setIndentStep(indent);
xw = d;
} else
xw = new XMLWriter(w, encoding, ceh);
xw.setXmlDecl(printXmlDeclaration);
xw.setHeader(header);
return xw;
}
Aggregations