Path: blob/aarch64-shenandoah-jdk8u272-b10/jaxp/src/javax/xml/stream/events/StartDocument.java
48584 views
/*1* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.2*3* This code is free software; you can redistribute it and/or modify it4* under the terms of the GNU General Public License version 2 only, as5* published by the Free Software Foundation. Oracle designates this6* particular file as subject to the "Classpath" exception as provided7* by Oracle in the LICENSE file that accompanied this code.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 2 along with this work; if not, write to the Free Software Foundation,17* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18*19* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*/2324/*25* Copyright (c) 2009 by Oracle Corporation. All Rights Reserved.26*/2728package javax.xml.stream.events;29/**30* An interface for the start document event31*32* @version 1.033* @author Copyright (c) 2009 by Oracle Corporation. All Rights Reserved.34* @since 1.635*/36public interface StartDocument extends XMLEvent {3738/**39* Returns the system ID of the XML data40* @return the system ID, defaults to ""41*/42public String getSystemId();4344/**45* Returns the encoding style of the XML data46* @return the character encoding, defaults to "UTF-8"47*/48public String getCharacterEncodingScheme();4950/**51* Returns true if CharacterEncodingScheme was set in52* the encoding declaration of the document53*/54public boolean encodingSet();5556/**57* Returns if this XML is standalone58* @return the standalone state of XML, defaults to "no"59*/60public boolean isStandalone();6162/**63* Returns true if the standalone attribute was set in64* the encoding declaration of the document.65*/66public boolean standaloneSet();6768/**69* Returns the version of XML of this XML stream70* @return the version of XML, defaults to "1.0"71*/72public String getVersion();73}747576