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 StringgetNamespaceURI()booleanhasNext()intnext()-
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- aXMLStreamReaderobject.namespaceUri- aStringobject.
-
-
Method Detail
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceXMLStreamReader- Overrides:
getNamespaceURIin classStreamReaderDelegate
-
hasNext
public boolean hasNext() throws XMLStreamException- Specified by:
hasNextin interfaceXMLStreamReader- Overrides:
hasNextin classStreamReaderDelegate- Throws:
XMLStreamException
-
next
public int next() throws XMLStreamException- Specified by:
nextin interfaceXMLStreamReader- Overrides:
nextin classStreamReaderDelegate- Throws:
XMLStreamException
-
-