< prev index next >
src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/UTF8XmlOutput.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 76,88 ****
/** Index in buffer to write to. */
protected int octetBufferIndex;
/**
! * Set to true to indicate that we need to write '>'
* to close a start tag. Deferring the write of this char
! * allows us to write "/>" for empty elements.
*/
protected boolean closeStartTagPending = false;
/**
* @see MarshallerImpl#header
--- 76,88 ----
/** Index in buffer to write to. */
protected int octetBufferIndex;
/**
! * Set to true to indicate that we need to write {@code '>'}
* to close a start tag. Deferring the write of this char
! * allows us to write {@code "/>"} for empty elements.
*/
protected boolean closeStartTagPending = false;
/**
* @see MarshallerImpl#header
*** 127,137 ****
flushBuffer();
super.endDocument(fragment);
}
/**
! * Writes '>' to close the start tag, if necessary.
*/
protected final void closeStartTag() throws IOException {
if(closeStartTagPending) {
write('>');
closeStartTagPending = false;
--- 127,137 ----
flushBuffer();
super.endDocument(fragment);
}
/**
! * Writes {@code '>'} to close the start tag, if necessary.
*/
protected final void closeStartTag() throws IOException {
if(closeStartTagPending) {
write('>');
closeStartTagPending = false;
< prev index next >