javax.xml.stream.events

Interface StartDocument

All Superinterfaces:
XMLEvent, XMLStreamConstants

public interface StartDocument
extends XMLEvent

Fields inherited from interface javax.xml.stream.XMLStreamConstants

ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT

Method Summary

boolean
encodingSet()
String
getCharacterEncodingScheme()
String
getSystemId()
String
getVersion()
boolean
isStandalone()
boolean
standaloneSet()

Methods inherited from interface javax.xml.stream.events.XMLEvent

asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode

Method Details

encodingSet

public boolean encodingSet()

getCharacterEncodingScheme

public String getCharacterEncodingScheme()

getSystemId

public String getSystemId()

getVersion

public String getVersion()
Usages and Demos :

View More Examples of getVersion()
   1:     }
   2:     else if (event instanceof StartDocument) {
   3:         ...
   4:       StartDocument startDocument = (StartDocument) event;
   5: 
   6:         ...
   7:         _out.writeStartDocument(startDocument.getCharacterEncodingScheme(),
   8:                                 startDocument.getVersion());
   9:       }
  10:         ...
  11:       else if (startDocument.getVersion() != null &&

View Full Code Here

isStandalone

public boolean isStandalone()

standaloneSet

public boolean standaloneSet()
Usages and Demos :

View More Examples of standaloneSet()
   1: import javax.xml.stream.XMLStreamException;
   2: import javax.xml.stream.events.StartDocument;
   3: import java.io.IOException;
   4:         ...
   5: 
   6: public class StartDocumentImpl extends XMLEventImpl implements StartDocument {
   7:   private final boolean _encodingSet;
   8:         ...
   9:   {
  10:     if (! (o instanceof StartDocument))
  11:       return false;
  12:         ...
  13:            isStandalone() == start.isStandalone() &&
  14:            standaloneSet() == start.standaloneSet();

View Full Code Here