com.beasys.commerce.axiom.document.ref
Class  URLDocument
java.lang.Object
  |
  +--com.beasys.commerce.axiom.document.ref.URLDocument
- All Implemented Interfaces: 
 - DocumentDef
 
- 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 | 
 
url
protected java.net.URL url
- The url object we read from.
 
URLDocument
public URLDocument(java.net.URL url)
- Constructor.
 
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
 
- Following copied from interface: 
com.beasys.commerce.axiom.document.spi.DocumentDef 
- Returns:
 - the raw bytes of the document.
 - Throws:
 DocumentException - thrown on an error.
 
 
openStream
public java.io.InputStream openStream()
                               throws DocumentException
- Open a sream to the bytes of the url.
- Specified by: 
 openStream in interface DocumentDef
 
- Following copied from interface: 
com.beasys.commerce.axiom.document.spi.DocumentDef 
- Returns:
 - an input stream to the bytes.
 - Throws:
 DocumentException - thrown on an error.
 
 
Copyright © 2001 BEA Systems, Inc. All Rights Reserved