public abstract class SDDocumentSource extends Object
SDDocument
.
This abstract class could be implemented by appliations, or one of the
create(java.net.URL)
methods can be used.
Constructor and Description |
---|
SDDocumentSource() |
Modifier and Type | Method and Description |
---|---|
static SDDocumentSource |
create(URL url)
Creates
SDDocumentSource from an URL. |
static SDDocumentSource |
create(URL systemId,
com.sun.xml.stream.buffer.XMLStreamBuffer xsb)
Creates a
SDDocumentSource from XMLStreamBuffer . |
abstract URL |
getSystemId()
System ID of this document.
|
abstract XMLStreamReader |
read()
Returns the
XMLStreamReader that reads the document. |
abstract XMLStreamReader |
read(XMLInputFactory xif)
Returns the
XMLStreamReader that reads the document. |
public abstract XMLStreamReader read(XMLInputFactory xif) throws IOException, XMLStreamException
XMLStreamReader
that reads the document.
This method maybe invoked multiple times concurrently.
xif
- The implementation may choose to use this object when it wants to
create a new parser (or it can just ignore this parameter completely.)XMLStreamException
- if something goes wrong while creating a parser.IOException
- if something goes wrong trying to read the document.public abstract XMLStreamReader read() throws IOException, XMLStreamException
XMLStreamReader
that reads the document.
This method maybe invoked multiple times concurrently.
XMLStreamException
- if something goes wrong while creating a parser.IOException
- if something goes wrong trying to read the document.public abstract URL getSystemId()
public static SDDocumentSource create(URL url)
SDDocumentSource
from an URL.public static SDDocumentSource create(URL systemId, com.sun.xml.stream.buffer.XMLStreamBuffer xsb)
SDDocumentSource
from XMLStreamBuffer
.Copyright © 2015 Oracle Corporation. All rights reserved.