equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 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 |
121 throw new XMLStreamException(ex); |
121 throw new XMLStreamException(ex); |
122 } |
122 } |
123 } |
123 } |
124 |
124 |
125 private void nl() throws XMLStreamException { |
125 private void nl() throws XMLStreamException { |
126 String lineEnd = System.getProperty("line.separator"); |
126 String lineEnd = System.lineSeparator(); |
127 try { |
127 try { |
128 _writer.write(lineEnd); |
128 _writer.write(lineEnd); |
129 } catch (IOException e) { |
129 } catch (IOException e) { |
130 throw new XMLStreamException("I/O error", e); |
130 throw new XMLStreamException("I/O error", e); |
131 } |
131 } |