| Constructor and Description |
|---|
DOMWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
printXML(String msg,
boolean attribute) |
void |
setDocTypePublic(String value) |
void |
setDocTypeSystem(String value) |
void |
setWriteCData(boolean value) |
void |
setWriter(Writer out) |
protected void |
write(Comment comment) |
void |
write(Document document)
Assumes that the output Writer has already been set.
|
void |
write(Document document,
String encoding)
Assumes that the output Writer has already been set.
|
void |
write(Document document,
String encoding,
boolean writeHeader)
Assumes that the output Writer has already been set.
|
protected void |
write(DocumentType docType) |
protected void |
write(Entity entity) |
void |
write(File f,
Document document)
Same as write(OutputStream os, Document document)
where os = the file's OutputStream.
|
protected void |
write(NamedNodeMap nodes)
This is used to print attributes.
|
void |
write(Node node) |
void |
write(OutputStream os,
Document document)
Same as write(OutputStream os, String encoding, Document document)
where encoding == null.
|
void |
write(OutputStream os,
String encoding,
Document document)
Create an output Writer based on the OutputStream using the
encoding (use "UTF-8" if encoding == null), then write the DOM
graph out.
|
protected void |
write(ProcessingInstruction pi) |
protected void |
write(String docName,
String publicId,
String systemId,
NamedNodeMap entities) |
public void setWriter(Writer out)
public void setWriteCData(boolean value)
public void setDocTypePublic(String value)
public void setDocTypeSystem(String value)
public void write(File f, Document document) throws IOException
IOExceptionpublic void write(OutputStream os, Document document) throws IOException
IOExceptionpublic void write(OutputStream os, String encoding, Document document) throws IOException
IOExceptionpublic void write(Document document) throws IOException
IOExceptionpublic void write(Document document, String encoding) throws IOException
encoding - goes into the XML header.IOExceptionpublic void write(Document document, String encoding, boolean writeHeader) throws IOException
encoding - goes into the XML header.writeHeader - whether or not the "
IOExceptionpublic void write(Node node) throws IOException
IOExceptionprotected void write(DocumentType docType) throws IOException
IOExceptionprotected void write(String docName, String publicId, String systemId, NamedNodeMap entities) throws IOException
IOExceptionprotected void write(Comment comment) throws IOException
IOExceptionprotected void write(Entity entity) throws IOException
IOExceptionprotected void write(ProcessingInstruction pi) throws IOException
IOExceptionprotected void write(NamedNodeMap nodes) throws IOException
IOExceptionprotected void printXML(String msg, boolean attribute) throws IOException
IOExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.