src/java.base/share/classes/jdk/internal/util/xml/impl/XMLStreamWriterImpl.java
changeset 48944 25aa8b9f1dae
parent 48252 77b88d8f8380
child 53018 8bf9268df0e2
equal deleted inserted replaced
48943:e61816fc5276 48944:25aa8b9f1dae
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    73      */
    73      */
    74     boolean _escapeCharacters = true;
    74     boolean _escapeCharacters = true;
    75     //pretty print by default
    75     //pretty print by default
    76     private boolean _doIndent = true;
    76     private boolean _doIndent = true;
    77     //The system line separator for writing out line breaks.
    77     //The system line separator for writing out line breaks.
    78     private char[] _lineSep =
    78     private char[] _lineSep = System.lineSeparator().toCharArray();
    79             System.getProperty("line.separator").toCharArray();
       
    80 
    79 
    81     public XMLStreamWriterImpl(OutputStream os) throws XMLStreamException {
    80     public XMLStreamWriterImpl(OutputStream os) throws XMLStreamException {
    82         this(os, XMLStreamWriter.DEFAULT_CHARSET);
    81         this(os, XMLStreamWriter.DEFAULT_CHARSET);
    83     }
    82     }
    84 
    83