jdk.internal.util.xml.XMLStreamWriter Java Examples

The following examples show how to use jdk.internal.util.xml.XMLStreamWriter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XMLStreamWriterImpl.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #2
Source File: XMLStreamWriterImpl.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #3
Source File: XMLStreamWriterImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #4
Source File: XMLStreamWriterImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #5
Source File: XMLStreamWriterImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #6
Source File: XMLStreamWriterImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #7
Source File: XMLStreamWriterImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #8
Source File: XMLStreamWriterImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #9
Source File: XMLStreamWriterImpl.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #10
Source File: XMLStreamWriterImpl.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #11
Source File: XMLStreamWriterImpl.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #12
Source File: XMLStreamWriterImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #13
Source File: XMLStreamWriterImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, String encoding)
    throws XMLStreamException
{
    Charset cs = null;
    if (encoding == null) {
        _encoding = XMLStreamWriter.DEFAULT_ENCODING;
    } else {
        try {
            cs = getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }

        this._encoding = encoding;
    }

    _writer = new XMLWriter(os, encoding, cs);
}
 
Example #14
Source File: XMLStreamWriterImpl.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os, Charset cs)
    throws XMLStreamException
{
    if (cs == null) {
        _charset = XMLStreamWriter.DEFAULT_CHARSET;
    } else {
        try {
            _charset = checkCharset(cs);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }
    }

    _writer = new XMLWriter(os, null, _charset);
}
 
Example #15
Source File: XMLStreamWriterImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Write the XML Declaration. Note that the encoding parameter does not set
 * the actual encoding of the underlying output. That must be set when the
 * instance of the XMLStreamWriter is created
 *
 * @param encoding encoding of the xml declaration
 * @param version version of the xml document
 * @param standalone indicate if the xml document is standalone
 * @throws XMLStreamException If given encoding does not match encoding of the
 * underlying stream
 */
public void writeStartDocument(String encoding, String version, String standalone)
    throws XMLStreamException
{
    if (_state > 0) {
        throw new XMLStreamException("XML declaration must be as the first line in the XML document.");
    }
    _state = STATE_XML_DECL;
    String enc = encoding;
    if (enc == null) {
        enc = _encoding;
    } else {
        //check if the encoding is supported
        try {
            getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }
    }

    if (version == null) {
        version = XMLStreamWriter.DEFAULT_XML_VERSION;
    }

    _writer.write("<?xml version=\"");
    _writer.write(version);
    _writer.write(DOUBLEQUOT);

    if (enc != null) {
        _writer.write(" encoding=\"");
        _writer.write(enc);
        _writer.write(DOUBLEQUOT);
    }

    if (standalone != null) {
        _writer.write(" standalone=\"");
        _writer.write(standalone);
        _writer.write(DOUBLEQUOT);
    }
    _writer.write("?>");
    writeLineSeparator();
}
 
Example #16
Source File: XMLStreamWriterImpl.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Write the XML Declaration. Note that the encoding parameter does not set
 * the actual encoding of the underlying output. That must be set when the
 * instance of the XMLStreamWriter is created
 *
 * @param encoding encoding of the xml declaration
 * @param version version of the xml document
 * @param standalone indicate if the xml document is standalone
 * @throws XMLStreamException If given encoding does not match encoding of the
 * underlying stream
 */
public void writeStartDocument(String encoding, String version, String standalone)
    throws XMLStreamException
{
    if (_state > 0) {
        throw new XMLStreamException("XML declaration must be as the first line in the XML document.");
    }
    _state = STATE_XML_DECL;
    String enc = encoding;
    if (enc == null) {
        enc = _encoding;
    } else {
        //check if the encoding is supported
        try {
            getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }
    }

    if (version == null) {
        version = XMLStreamWriter.DEFAULT_XML_VERSION;
    }

    _writer.write("<?xml version=\"");
    _writer.write(version);
    _writer.write(DOUBLEQUOT);

    if (enc != null) {
        _writer.write(" encoding=\"");
        _writer.write(enc);
        _writer.write(DOUBLEQUOT);
    }

    if (standalone != null) {
        _writer.write(" standalone=\"");
        _writer.write(standalone);
        _writer.write(DOUBLEQUOT);
    }
    _writer.write("?>");
    writeLineSeparator();
}
 
Example #17
Source File: XMLStreamWriterImpl.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Write the XML Declaration. Note that the encoding parameter does not set
 * the actual encoding of the underlying output. That must be set when the
 * instance of the XMLStreamWriter is created
 *
 * @param encoding encoding of the xml declaration
 * @param version version of the xml document
 * @param standalone indicate if the xml document is standalone
 * @throws XMLStreamException If given encoding does not match encoding of the
 * underlying stream
 */
public void writeStartDocument(String encoding, String version, String standalone)
    throws XMLStreamException
{
    if (_state > 0) {
        throw new XMLStreamException("XML declaration must be as the first line in the XML document.");
    }
    _state = STATE_XML_DECL;
    String enc = encoding;
    if (enc == null) {
        enc = _encoding;
    } else {
        //check if the encoding is supported
        try {
            getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }
    }

    if (version == null) {
        version = XMLStreamWriter.DEFAULT_XML_VERSION;
    }

    _writer.write("<?xml version=\"");
    _writer.write(version);
    _writer.write(DOUBLEQUOT);

    if (enc != null) {
        _writer.write(" encoding=\"");
        _writer.write(enc);
        _writer.write(DOUBLEQUOT);
    }

    if (standalone != null) {
        _writer.write(" standalone=\"");
        _writer.write(standalone);
        _writer.write(DOUBLEQUOT);
    }
    _writer.write("?>");
    writeLineSeparator();
}
 
Example #18
Source File: XMLStreamWriterImpl.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os) throws XMLStreamException {
    this(os, XMLStreamWriter.DEFAULT_ENCODING);
}
 
Example #19
Source File: XMLStreamWriterImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os) throws XMLStreamException {
    this(os, XMLStreamWriter.DEFAULT_ENCODING);
}
 
Example #20
Source File: XMLStreamWriterImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Write the XML Declaration. Note that the encoding parameter does not set
 * the actual encoding of the underlying output. That must be set when the
 * instance of the XMLStreamWriter is created
 *
 * @param encoding encoding of the xml declaration
 * @param version version of the xml document
 * @param standalone indicate if the xml document is standalone
 * @throws XMLStreamException If given encoding does not match encoding of the
 * underlying stream
 */
public void writeStartDocument(String encoding, String version, String standalone)
    throws XMLStreamException
{
    if (_state > 0) {
        throw new XMLStreamException("XML declaration must be as the first line in the XML document.");
    }
    _state = STATE_XML_DECL;
    String enc = encoding;
    if (enc == null) {
        enc = _encoding;
    } else {
        //check if the encoding is supported
        try {
            getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }
    }

    if (version == null) {
        version = XMLStreamWriter.DEFAULT_XML_VERSION;
    }

    _writer.write("<?xml version=\"");
    _writer.write(version);
    _writer.write(DOUBLEQUOT);

    if (enc != null) {
        _writer.write(" encoding=\"");
        _writer.write(enc);
        _writer.write(DOUBLEQUOT);
    }

    if (standalone != null) {
        _writer.write(" standalone=\"");
        _writer.write(standalone);
        _writer.write(DOUBLEQUOT);
    }
    _writer.write("?>");
    writeLineSeparator();
}
 
Example #21
Source File: XMLStreamWriterImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os) throws XMLStreamException {
    this(os, XMLStreamWriter.DEFAULT_ENCODING);
}
 
Example #22
Source File: XMLStreamWriterImpl.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os) throws XMLStreamException {
    this(os, XMLStreamWriter.DEFAULT_ENCODING);
}
 
Example #23
Source File: XMLStreamWriterImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os) throws XMLStreamException {
    this(os, XMLStreamWriter.DEFAULT_ENCODING);
}
 
Example #24
Source File: XMLStreamWriterImpl.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Write the XML Declaration. Note that the encoding parameter does not set
 * the actual encoding of the underlying output. That must be set when the
 * instance of the XMLStreamWriter is created
 *
 * @param encoding encoding of the xml declaration
 * @param version version of the xml document
 * @param standalone indicate if the xml document is standalone
 * @throws XMLStreamException If given encoding does not match encoding of the
 * underlying stream
 */
public void writeStartDocument(String encoding, String version, String standalone)
    throws XMLStreamException
{
    if (_state > 0) {
        throw new XMLStreamException("XML declaration must be as the first line in the XML document.");
    }
    _state = STATE_XML_DECL;
    String enc = encoding;
    if (enc == null) {
        enc = _encoding;
    } else {
        //check if the encoding is supported
        try {
            getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }
    }

    if (version == null) {
        version = XMLStreamWriter.DEFAULT_XML_VERSION;
    }

    _writer.write("<?xml version=\"");
    _writer.write(version);
    _writer.write(DOUBLEQUOT);

    if (enc != null) {
        _writer.write(" encoding=\"");
        _writer.write(enc);
        _writer.write(DOUBLEQUOT);
    }

    if (standalone != null) {
        _writer.write(" standalone=\"");
        _writer.write(standalone);
        _writer.write(DOUBLEQUOT);
    }
    _writer.write("?>");
    writeLineSeparator();
}
 
Example #25
Source File: XMLStreamWriterImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Write the XML Declaration. Note that the encoding parameter does not set
 * the actual encoding of the underlying output. That must be set when the
 * instance of the XMLStreamWriter is created
 *
 * @param encoding encoding of the xml declaration
 * @param version version of the xml document
 * @param standalone indicate if the xml document is standalone
 * @throws XMLStreamException If given encoding does not match encoding of the
 * underlying stream
 */
public void writeStartDocument(String encoding, String version, String standalone)
    throws XMLStreamException
{
    if (_state > 0) {
        throw new XMLStreamException("XML declaration must be as the first line in the XML document.");
    }
    _state = STATE_XML_DECL;
    String enc = encoding;
    if (enc == null) {
        enc = _encoding;
    } else {
        //check if the encoding is supported
        try {
            getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }
    }

    if (version == null) {
        version = XMLStreamWriter.DEFAULT_XML_VERSION;
    }

    _writer.write("<?xml version=\"");
    _writer.write(version);
    _writer.write(DOUBLEQUOT);

    if (enc != null) {
        _writer.write(" encoding=\"");
        _writer.write(enc);
        _writer.write(DOUBLEQUOT);
    }

    if (standalone != null) {
        _writer.write(" standalone=\"");
        _writer.write(standalone);
        _writer.write(DOUBLEQUOT);
    }
    _writer.write("?>");
    writeLineSeparator();
}
 
Example #26
Source File: XMLStreamWriterImpl.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os) throws XMLStreamException {
    this(os, XMLStreamWriter.DEFAULT_ENCODING);
}
 
Example #27
Source File: XMLStreamWriterImpl.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public XMLStreamWriterImpl(OutputStream os) throws XMLStreamException {
    this(os, XMLStreamWriter.DEFAULT_ENCODING);
}
 
Example #28
Source File: XMLStreamWriterImpl.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Write the XML Declaration. Note that the encoding parameter does not set
 * the actual encoding of the underlying output. That must be set when the
 * instance of the XMLStreamWriter is created
 *
 * @param encoding encoding of the xml declaration
 * @param version version of the xml document
 * @param standalone indicate if the xml document is standalone
 * @throws XMLStreamException If given encoding does not match encoding of the
 * underlying stream
 */
public void writeStartDocument(String encoding, String version, String standalone)
    throws XMLStreamException
{
    if (_state > 0) {
        throw new XMLStreamException("XML declaration must be as the first line in the XML document.");
    }
    _state = STATE_XML_DECL;
    String enc = encoding;
    if (enc == null) {
        enc = _encoding;
    } else {
        //check if the encoding is supported
        try {
            getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }
    }

    if (version == null) {
        version = XMLStreamWriter.DEFAULT_XML_VERSION;
    }

    _writer.write("<?xml version=\"");
    _writer.write(version);
    _writer.write(DOUBLEQUOT);

    if (enc != null) {
        _writer.write(" encoding=\"");
        _writer.write(enc);
        _writer.write(DOUBLEQUOT);
    }

    if (standalone != null) {
        _writer.write(" standalone=\"");
        _writer.write(standalone);
        _writer.write(DOUBLEQUOT);
    }
    _writer.write("?>");
    writeLineSeparator();
}
 
Example #29
Source File: XMLStreamWriterImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Write the XML Declaration. Note that the encoding parameter does not set
 * the actual encoding of the underlying output. That must be set when the
 * instance of the XMLStreamWriter is created
 *
 * @param encoding encoding of the xml declaration
 * @param version version of the xml document
 * @param standalone indicate if the xml document is standalone
 * @throws XMLStreamException If given encoding does not match encoding of the
 * underlying stream
 */
public void writeStartDocument(String encoding, String version, String standalone)
    throws XMLStreamException
{
    if (_state > 0) {
        throw new XMLStreamException("XML declaration must be as the first line in the XML document.");
    }
    _state = STATE_XML_DECL;
    String enc = encoding;
    if (enc == null) {
        enc = _encoding;
    } else {
        //check if the encoding is supported
        try {
            getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }
    }

    if (version == null) {
        version = XMLStreamWriter.DEFAULT_XML_VERSION;
    }

    _writer.write("<?xml version=\"");
    _writer.write(version);
    _writer.write(DOUBLEQUOT);

    if (enc != null) {
        _writer.write(" encoding=\"");
        _writer.write(enc);
        _writer.write(DOUBLEQUOT);
    }

    if (standalone != null) {
        _writer.write(" standalone=\"");
        _writer.write(standalone);
        _writer.write(DOUBLEQUOT);
    }
    _writer.write("?>");
    writeLineSeparator();
}
 
Example #30
Source File: XMLStreamWriterImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Write the XML Declaration. Note that the encoding parameter does not set
 * the actual encoding of the underlying output. That must be set when the
 * instance of the XMLStreamWriter is created
 *
 * @param encoding encoding of the xml declaration
 * @param version version of the xml document
 * @param standalone indicate if the xml document is standalone
 * @throws XMLStreamException If given encoding does not match encoding of the
 * underlying stream
 */
public void writeStartDocument(String encoding, String version, String standalone)
    throws XMLStreamException
{
    if (_state > 0) {
        throw new XMLStreamException("XML declaration must be as the first line in the XML document.");
    }
    _state = STATE_XML_DECL;
    String enc = encoding;
    if (enc == null) {
        enc = _encoding;
    } else {
        //check if the encoding is supported
        try {
            getCharset(encoding);
        } catch (UnsupportedEncodingException e) {
            throw new XMLStreamException(e);
        }
    }

    if (version == null) {
        version = XMLStreamWriter.DEFAULT_XML_VERSION;
    }

    _writer.write("<?xml version=\"");
    _writer.write(version);
    _writer.write(DOUBLEQUOT);

    if (enc != null) {
        _writer.write(" encoding=\"");
        _writer.write(enc);
        _writer.write(DOUBLEQUOT);
    }

    if (standalone != null) {
        _writer.write(" standalone=\"");
        _writer.write(standalone);
        _writer.write(DOUBLEQUOT);
    }
    _writer.write("?>");
    writeLineSeparator();
}