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 javax.xml.stream.XMLStreamReader |
read()
Returns the
XMLStreamReader that reads the document. |
abstract javax.xml.stream.XMLStreamReader |
read(javax.xml.stream.XMLInputFactory xif)
Returns the
XMLStreamReader that reads the document. |
public abstract javax.xml.stream.XMLStreamReader read(javax.xml.stream.XMLInputFactory xif) throws IOException, javax.xml.stream.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.)javax.xml.stream.XMLStreamException
- if something goes wrong while creating a parser.IOException
- if something goes wrong trying to read the document.public abstract javax.xml.stream.XMLStreamReader read() throws IOException, javax.xml.stream.XMLStreamException
XMLStreamReader
that reads the document.
This method maybe invoked multiple times concurrently.
javax.xml.stream.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 (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.