Package psidev.psi.mi.jami.xml.io.parser
Class XmlReaderWithDefaultNamespace
- java.lang.Object
-
- javax.xml.stream.util.StreamReaderDelegate
-
- psidev.psi.mi.jami.xml.io.parser.XmlReaderWithDefaultNamespace
-
- All Implemented Interfaces:
XMLStreamConstants
,XMLStreamReader
public class XmlReaderWithDefaultNamespace extends StreamReaderDelegate
Namespace filter that sets default namespace when no namespaces are found- Since:
25/06/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description XmlReaderWithDefaultNamespace(XMLStreamReader reader, String namespaceUri)
Constructor for XmlReaderWithDefaultNamespace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNamespaceURI()
boolean
hasNext()
int
next()
-
Methods inherited from class javax.xml.stream.util.StreamReaderDelegate
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getParent, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, setParent, standaloneSet
-
-
-
-
Constructor Detail
-
XmlReaderWithDefaultNamespace
public XmlReaderWithDefaultNamespace(XMLStreamReader reader, String namespaceUri)
Constructor for XmlReaderWithDefaultNamespace.
- Parameters:
reader
- aXMLStreamReader
object.namespaceUri
- aString
object.
-
-
Method Detail
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI
in interfaceXMLStreamReader
- Overrides:
getNamespaceURI
in classStreamReaderDelegate
-
hasNext
public boolean hasNext() throws XMLStreamException
- Specified by:
hasNext
in interfaceXMLStreamReader
- Overrides:
hasNext
in classStreamReaderDelegate
- Throws:
XMLStreamException
-
next
public int next() throws XMLStreamException
- Specified by:
next
in interfaceXMLStreamReader
- Overrides:
next
in classStreamReaderDelegate
- Throws:
XMLStreamException
-
-