DEPRECATED

# com.bea.p13n.content.document.ref
URLDocument Class

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`

## Field Summary

`protected `URL`` | `url` The url object we read from.

## Constructor Summary

URLDocument(`URL` url) Constructor.

## Method Summary

`public byte[]` | `getBytes`() Get the bytes of the url.
`public `URL`` | `getURL`() Get the url used.
`public `InputStream`` | `openStream`() Open a sream to the bytes of the url.
`public void` | `setURL`(`URL` url) Set the url used.

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

Methods from interface `com.bea.p13n.content.document.spi.`com.bea.p13n.content.document.spi.DocumentDef``
``getBytes`, `openStream``

## Field Detail

### url

    protected URL url

  The url object we read from.

## Constructor Detail

### URLDocument

    public URLDocument(URL url)

  Constructor.

## Method Detail

### 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.