URLDocument Class
DEPRECATED
- public class URLDocument
extends Object
implements com.bea.p13n.content.document.spi.DocumentDef
A concreate implementation of a document which uses an URL
-
Hierarchy
-
Object
URLDocument
-
All Implemented Interfaces
-
com.bea.p13n.content.document.spi.DocumentDef
protected URL |
-
url
- The url object we read from.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
url
protected URL
url
- The url object we read from.
URLDocument
public URLDocument(URL
url)
- Constructor.
getBytes() Method
public byte[] getBytes()
throws DocumentException
Get the bytes of the url.
Returns
- the raw bytes of the document.
Exceptions
-
DocumentException
getURL() Method
public URL
getURL()
Get the url used.
openStream() Method
public InputStream
openStream()
throws DocumentException
Open a sream to the bytes of the url.
Returns
- an input stream to the bytes.
Exceptions
-
DocumentException
setURL(URL) Method
public void setURL(URL
url)
Set the url used.