Package org.apache.xmlbeans.impl.common
Class GenericXmlInputStream
- java.lang.Object
 - 
- org.apache.xmlbeans.impl.common.GenericXmlInputStream
 
 
- 
- All Implemented Interfaces:
 XMLInputStream
- Direct Known Subclasses:
 ValidatingXMLInputStream
public class GenericXmlInputStream extends java.lang.Object implements XMLInputStream
Deprecated.XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. 
- 
- 
Constructor Summary
Constructors Constructor Description GenericXmlInputStream()Deprecated. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.Closes this input stream and releases any system resources associated with the stream.ReferenceResolvergetReferenceResolver()Deprecated.Returns the reference resolver that was set for this stream, returns null if no ReferenceResolver has been set.XMLInputStreamgetSubStream()Deprecated.getSubStream() returns a stream which points to the entire next element in the current stream.booleanhasNext()Deprecated.Check if there are more events to pull of the streamXMLEventnext()Deprecated.Get the next XMLEvent on the streamXMLEventpeek()Deprecated.Check the next XMLEvent without reading it from the stream.voidsetReferenceResolver(ReferenceResolver resolver)Deprecated.Provides a way to set the ReferenceResolver of the stream, this is mostly needed for handle references to other parts of the document.voidskip()Deprecated.Skip the next stream eventbooleanskip(int eventType)Deprecated.Position the stream at the next XMLEvent of this type.booleanskip(XMLName name)Deprecated.Position the stream at the next element of this name.booleanskip(XMLName name, int eventType)Deprecated.Position the stream at the next element of this name and this type.voidskipElement()Deprecated.Skips the entire next start tag / end tag pair. 
 - 
 
- 
- 
Method Detail
- 
next
public XMLEvent next() throws XMLStreamException
Deprecated.Description copied from interface:XMLInputStreamGet the next XMLEvent on the stream- Specified by:
 nextin interfaceXMLInputStream- Throws:
 XMLStreamException- See Also:
 XMLEvent
 
- 
hasNext
public boolean hasNext() throws XMLStreamExceptionDeprecated.Description copied from interface:XMLInputStreamCheck if there are more events to pull of the stream- Specified by:
 hasNextin interfaceXMLInputStream- Throws:
 XMLStreamException- See Also:
 XMLEvent
 
- 
skip
public void skip() throws XMLStreamExceptionDeprecated.Description copied from interface:XMLInputStreamSkip the next stream event- Specified by:
 skipin interfaceXMLInputStream- Throws:
 XMLStreamException
 
- 
skipElement
public void skipElement() throws XMLStreamExceptionDeprecated.Description copied from interface:XMLInputStreamSkips the entire next start tag / end tag pair.- Specified by:
 skipElementin interfaceXMLInputStream- Throws:
 XMLStreamException
 
- 
peek
public XMLEvent peek() throws XMLStreamException
Deprecated.Description copied from interface:XMLInputStreamCheck the next XMLEvent without reading it from the stream. Returns null if the stream is at EOF or has no more XMLEvents.- Specified by:
 peekin interfaceXMLInputStream- Throws:
 XMLStreamException- See Also:
 XMLEvent
 
- 
skip
public boolean skip(int eventType) throws XMLStreamExceptionDeprecated.Description copied from interface:XMLInputStreamPosition the stream at the next XMLEvent of this type. The method returns true if the stream contains another XMLEvent of this type and false otherwise.- Specified by:
 skipin interfaceXMLInputStream- Parameters:
 eventType- An integer code that indicates the element type.- Throws:
 XMLStreamException- See Also:
 XMLEvent
 
- 
skip
public boolean skip(XMLName name) throws XMLStreamException
Deprecated.Description copied from interface:XMLInputStreamPosition the stream at the next element of this name. The method returns true if the stream contains another element with this name and false otherwise. Skip is a forward operator only. It does not look backward in the stream.- Specified by:
 skipin interfaceXMLInputStream- Parameters:
 name- An object that defines an XML name. If the XMLName.getNameSpaceName() method on the XMLName argument returns null the XMLName will match just the local name. Prefixes are not checked for equality.- Throws:
 XMLStreamException- See Also:
 XMLName
 
- 
skip
public boolean skip(XMLName name, int eventType) throws XMLStreamException
Deprecated.Description copied from interface:XMLInputStreamPosition the stream at the next element of this name and this type. The method returns true if the stream contains another element with this name of this type and false otherwise.- Specified by:
 skipin interfaceXMLInputStream- Parameters:
 name- An object that defines an XML name. If the XMLName.getNameSpaceName() method on the XMLName argument returns null the XMLName will match just the local name. Prefixes are not checked for equality.eventType- An integer code that indicates the element type.- Throws:
 XMLStreamException- See Also:
 XMLEvent,XMLName
 
- 
getSubStream
public XMLInputStream getSubStream() throws XMLStreamException
Deprecated.Description copied from interface:XMLInputStreamgetSubStream() returns a stream which points to the entire next element in the current stream. For example: take a document that has a root node A, where the children of A are B, C, and D. If the stream is pointing to the start element of A, getSubStream() will return A, B, C and D including the start element of A and the end element of A. The position of the parent stream is not changed and the events read by the substream are written back to its parent.- Specified by:
 getSubStreamin interfaceXMLInputStream- Throws:
 XMLStreamException
 
- 
close
public void close() throws XMLStreamExceptionDeprecated.Description copied from interface:XMLInputStreamCloses this input stream and releases any system resources associated with the stream.- Specified by:
 closein interfaceXMLInputStream- Throws:
 XMLStreamException
 
- 
getReferenceResolver
public ReferenceResolver getReferenceResolver()
Deprecated.Description copied from interface:XMLInputStreamReturns the reference resolver that was set for this stream, returns null if no ReferenceResolver has been set.- Specified by:
 getReferenceResolverin interfaceXMLInputStream- See Also:
 ReferenceResolver
 
- 
setReferenceResolver
public void setReferenceResolver(ReferenceResolver resolver)
Deprecated.Description copied from interface:XMLInputStreamProvides a way to set the ReferenceResolver of the stream, this is mostly needed for handle references to other parts of the document.- Specified by:
 setReferenceResolverin interfaceXMLInputStream- See Also:
 ReferenceResolver
 
 - 
 
 -