Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | Oracle
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weblogic.xml.stream.util
Class XMLInputOutputStreamBase

    java.lang.Object
      weblogic.xml.stream.util.XMLInputOutputStreamBase

All Implemented Interfaces:
  XMLInputOutputStream, XMLInputStream, XMLOutputStream

Deprecated. please use java standard StAX api

    public class XMLInputOutputStreamBase

extends Object
implements XMLInputOutputStream

This object provides an I/O stream

Since:
  XMLInputStream 1.0
See Also:
  `XMLInputStream`, `XMLOutputStream`

Field Summary
`protected CircularQueue` | `elementQ` Deprecated.
`protected weblogic.xml.stream.events.StartElementEvent` | `lastStartElement` Deprecated.
`protected ReferenceResolver` | `resolver` Deprecated.

Constructor Summary
`XMLInputOutputStreamBase()` Deprecated.

Method Summary
`void` | `add(Attribute attribute)` Deprecated. This method is only supported if the last element was a start element.
`void` | `add(String markup)` Deprecated.
`void` | `add(XMLEvent e)` Deprecated.
`void` | `add(XMLInputStream stream)` Deprecated.
`void` | `close()` Deprecated. Closes this input stream and releases any system resources associated with the stream.
`void` | `close(boolean flush)` Deprecated.
`void` | `flush()` Deprecated.
`ReferenceResolver` | `getReferenceResolver()` Deprecated. Returns the reference resolver that was set for this stream, returns null if no ReferenceResolver has been set.
`XMLInputStream` | `getSubStream()` Deprecated. getSubStream() returns a stream which points to the entire next element in the current stream.
`boolean` | `hasNext()` Deprecated. Check if there are more events to pull of the stream
`static void` | `main(String[] args)` Deprecated.
`protected boolean` | `matchName(XMLName name1, XMLName name2)` Deprecated.
`XMLEvent` | `next()` Deprecated. Get the next XMLEvent on the stream
`XMLEvent` | `peek()` Deprecated. Check the next XMLEvent without reading it from the stream.
`void` | `setReferenceResolver(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.
`void` | `skip()` Deprecated. Skip the next stream event
`boolean` | `skip(int elementType)` Deprecated. Position the stream at the next XMLEvent of this type.
`boolean` | `skip(XMLName name)` Deprecated. Position the stream at the next element of this name.
`boolean` | `skip(XMLName name, int elementType)` Deprecated. Position the stream at the next element of this name and this type.
`void` | `skipElement()` Deprecated. Skips the entire next start tag / end tag pair.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### elementQ

    protected CircularQueue elementQ

  Deprecated.

### lastStartElement

    protected weblogic.xml.stream.events.StartElementEvent lastStartElement

  Deprecated.

### resolver

    protected ReferenceResolver resolver

  Deprecated.

Constructor Detail

### XMLInputOutputStreamBase

    public XMLInputOutputStreamBase()

  Deprecated.

Method Detail

### add

    public void add(XMLEvent e)
             throws XMLStreamException

  Deprecated.
  Specified by:
    `add` in interface `XMLOutputStream`
  Throws:
    `XMLStreamException`

### add

    public void add(Attribute attribute)
             throws XMLStreamException

  Deprecated.
  This method is only supported if the last element was a start element.

  Specified by:
    `add` in interface `XMLOutputStream`
  Throws:
    `XMLStreamException`

### add

    public void add(XMLInputStream stream)
             throws XMLStreamException

  Deprecated.
  Specified by:
    `add` in interface `XMLOutputStream`
  Throws:
    `XMLStreamException`

### add

    public void add(String markup)
             throws XMLStreamException

  Deprecated.
  Specified by:
    `add` in interface `XMLOutputStream`
  Throws:
    `XMLStreamException`

### flush

    public void flush()
               throws XMLStreamException

  Deprecated.
  Specified by:
    `flush` in interface `XMLOutputStream`
  Throws:
    `XMLStreamException`

### next

    public XMLEvent next()
                  throws XMLStreamException

  Deprecated.
  Description copied from interface: `XMLInputStream`
  Get the next XMLEvent on the stream

  Specified by:
    `next` in interface `XMLInputStream`
  Throws:
    `XMLStreamException`
  See Also:
    `XMLEvent`

### hasNext

    public boolean hasNext()
                    throws XMLStreamException

  Deprecated.
  Description copied from interface: `XMLInputStream`
  Check if there are more events to pull of the stream

  Specified by:
    `hasNext` in interface `XMLInputStream`
  Throws:
    `XMLStreamException`
  See Also:
    `XMLEvent`

### skip

    public void skip()
              throws XMLStreamException

  Deprecated.
  Description copied from interface: `XMLInputStream`
  Skip the next stream event

  Specified by:
    `skip` in interface `XMLInputStream`
  Throws:
    `XMLStreamException`

### skipElement

    public void skipElement()
                     throws XMLStreamException

  Deprecated.
  Description copied from interface: `XMLInputStream`
  Skips the entire next start tag / end tag pair.

  Specified by:
    `skipElement` in interface `XMLInputStream`
  Throws:
    `XMLStreamException`

### peek

    public XMLEvent peek()
                  throws XMLStreamException

  Deprecated.
  Description copied from interface: `XMLInputStream`
  Check the next XMLEvent without reading it from the stream. Returns null if the stream is at EOF or has no more XMLEvents.

  Specified by:
    `peek` in interface `XMLInputStream`
  Throws:
    `XMLStreamException`
  See Also:
    `XMLEvent`

### skip

    public boolean skip(int elementType)
                 throws XMLStreamException

  Deprecated.
  Description copied from interface: `XMLInputStream`
  Position 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:
    `skip` in interface `XMLInputStream`
  Parameters:
    `elementType` - An integer code that indicates the element type.
  Throws:
    `XMLStreamException`
  See Also:
    `XMLEvent`

### matchName

    protected boolean matchName(XMLName name1,
                                XMLName name2)

  Deprecated.

### skip

    public boolean skip(XMLName name)
                 throws XMLStreamException

  Deprecated.
  Description copied from interface: `XMLInputStream`
  Position 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:
    `skip` in interface `XMLInputStream`
  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 elementType)
                 throws XMLStreamException

  Deprecated.
  Description copied from interface: `XMLInputStream`
  Position 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:
    `skip` in interface `XMLInputStream`
  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.
    `elementType` - 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: `XMLInputStream`
  getSubStream() 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:
    `getSubStream` in interface `XMLInputStream`
  Throws:
    `XMLStreamException`

### close

    public void close()
               throws XMLStreamException

  Deprecated.
  Description copied from interface: `XMLInputStream`
  Closes this input stream and releases any system resources associated with the stream.

  Specified by:
    `close` in interface `XMLInputStream`
  Specified by:
    `close` in interface `XMLOutputStream`
  Throws:
    `XMLStreamException`

### close

    public void close(boolean flush)
               throws XMLStreamException

  Deprecated.
  Specified by:
    `close` in interface `XMLOutputStream`
  Throws:
    `XMLStreamException`

### setReferenceResolver

    public void setReferenceResolver(ReferenceResolver resolver)

  Deprecated.
  Description copied from interface: `XMLInputStream`
  Provides a way to set the ReferenceResolver of the stream, this is mostly needed for handle references to other parts of the document.

  Specified by:
    `setReferenceResolver` in interface `XMLInputStream`
  See Also:
    `ReferenceResolver`

### getReferenceResolver

    public ReferenceResolver getReferenceResolver()

  Deprecated.
  Description copied from interface: `XMLInputStream`
  Returns the reference resolver that was set for this stream, returns null if no ReferenceResolver has been set.

  Specified by:
    `getReferenceResolver` in interface `XMLInputStream`
  See Also:
    `ReferenceResolver`

### main

    public static void main(String[] args)
                     throws Exception

  Deprecated.
  Throws:
    `Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD