Top Constructors Methods
org.jabref.logic.importer.util

public Class StaxParser

extends Object
Class Inheritance
Imports
javax.xml.stream.XMLStreamConstants, .XMLStreamException, .XMLStreamReader

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
private static String
public static String

Returns:

Returns the inner XML content
getXMLContent
(XMLStreamReader
the stream reader
reader
)

Extracts the XML content inside the first encountered parent tag, including tag elements, attributes, namespace, prefix and contained text

private static String
private static String
private static String
getXMLStartTag(XMLStreamReader reader, boolean addNamespaceURI)

private static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StaxParserback to summary
public StaxParser()

Method Detail

getXMLCDataback to summary
private static String getXMLCData(XMLStreamReader reader)
getXMLCommentback to summary
private static String getXMLComment(XMLStreamReader reader)
getXMLContentback to summary
public static String getXMLContent(XMLStreamReader reader) throws XMLStreamException

Extracts the XML content inside the first encountered parent tag, including tag elements, attributes, namespace, prefix and contained text

Parameters
reader:XMLStreamReader

the stream reader

Returns:String

Returns the inner XML content

getXMLEndTagback to summary
private static String getXMLEndTag(XMLStreamReader reader)
getXMLProcessingInstructionback to summary
private static String getXMLProcessingInstruction(XMLStreamReader reader)
getXMLStartTagback to summary
private static String getXMLStartTag(XMLStreamReader reader, boolean addNamespaceURI)
getXMLTextback to summary
private static String getXMLText(XMLStreamReader reader)