© 2002 BEA Systems, Inc.


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

java.lang.Object
  |
  +--com.bea.p13n.content.document.ref.URLDocument

public class URLDocument
extends java.lang.Object
implements DocumentDef

A concreate implementation of a document which uses an URL


Field Summary
protected  java.net.URL url
          The url object we read from.
 
Constructor Summary
URLDocument(java.net.URL url)
          Constructor.
 
Method Summary
 byte[] getBytes()
          Get the bytes of the url.
 java.net.URL getURL()
          Get the url used.
 java.io.InputStream openStream()
          Open a sream to the bytes of the url.
 void setURL(java.net.URL url)
          Set the url used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

protected java.net.URL url
The url object we read from.
Constructor Detail

URLDocument

public URLDocument(java.net.URL url)
Constructor.
Method Detail

getURL

public java.net.URL getURL()
Get the url used.


setURL

public void setURL(java.net.URL url)
Set the url used.


getBytes

public byte[] getBytes()
                throws DocumentException
Get the bytes of the url.
Specified by:
getBytes in interface DocumentDef


openStream

public java.io.InputStream openStream()
                               throws DocumentException
Open a sream to the bytes of the url.
Specified by:
openStream in interface DocumentDef


© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved