public abstract class XMLDocumentBase extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX_APP |
static String |
PREFIX_ATOM |
static String |
PREFIX_CMIS |
static String |
PREFIX_RESTATOM |
static String |
PREFIX_XSI |
Constructor and Description |
---|
XMLDocumentBase() |
Modifier and Type | Method and Description |
---|---|
void |
endDocument()
Finishes the document.
|
XMLStreamWriter |
getWriter()
Returns the writer object.
|
void |
setNamespaces()
Sets the namespaces for the document.
|
protected void |
setWriter(XMLStreamWriter writer)
Sets the writer object.
|
void |
startDocument(OutputStream out)
Starts the document and sets the namespaces.
|
void |
writeNamespace(String namespaceUri)
Writes the namespace declaration of the given URI to the current tag.
|
public static final String PREFIX_ATOM
public static final String PREFIX_CMIS
public static final String PREFIX_RESTATOM
public static final String PREFIX_APP
public static final String PREFIX_XSI
public void setNamespaces() throws XMLStreamException
XMLStreamException
public void writeNamespace(String namespaceUri) throws XMLStreamException
XMLStreamException
public void startDocument(OutputStream out) throws XMLStreamException
XMLStreamException
public void endDocument() throws XMLStreamException
XMLStreamException
public XMLStreamWriter getWriter()
protected void setWriter(XMLStreamWriter writer)
Copyright © 2018 City of Paris. All rights reserved.