SAP NetWeaver '04

com.sapportals.wcm.util.uri
Class DataUri

[contained in: com.sap.netweaver.bc.util.par - bc.util.public_api.jar]
java.lang.Object
  |
  +--com.sapportals.wcm.util.uri.GenericUri
        |
        +--com.sapportals.wcm.util.uri.DataUri
All Implemented Interfaces:
IUri

public class DataUri
extends GenericUri

A RFC2397 IUri implementation.

      dataurl    := "data:" [ mediatype ] [ ";base64" ] "," data
      mediatype  := [ type "/" subtype ] *( ";" parameter )
      data       := *urlchar
      parameter  := attribute "=" value
 

Copyright (c) SAP AG 2001-2003


Constructor Summary
DataUri(java.lang.String remainder)
           
 
Method Summary
 java.lang.String getContentType()
           
 byte[] getData()
           
 java.lang.String getEncoding()
           
protected  IUri newInstance(java.lang.String remainder)
          Construct a new IUri with the scheme of this and the given remainder. used when generic uri resolves references.
 
Methods inherited from class com.sapportals.wcm.util.uri.GenericUri
equals, equals, getRemainder, getScheme, hashCode, resolve, toExternalForm, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataUri

public DataUri(java.lang.String remainder)
        throws java.lang.IllegalArgumentException
Method Detail

getData

public byte[] getData()

getEncoding

public java.lang.String getEncoding()

getContentType

public java.lang.String getContentType()

newInstance

protected IUri newInstance(java.lang.String remainder)
                    throws java.lang.IllegalArgumentException
Description copied from class: GenericUri
Construct a new IUri with the scheme of this and the given remainder. used when generic uri resolves references. This method should be overridden by subclasses to construct their own class.
Overrides:
newInstance in class GenericUri
Following copied from class: com.sapportals.wcm.util.uri.GenericUri
Parameters:
remainder - new opaque part of uri
Returns:
new IUri instance
Throws:
java.lang.IllegalArgumentException - Exception raised in failure situation
java.lang.IllegalArgumentException - when remainder is not legal

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.