net.ontopia.net.data
Class DataURL

java.lang.Object
  extended by net.ontopia.net.data.DataURL

public class DataURL
extends Object

INTERNAL: A class for parsing and representing data URLs.


Constructor Summary
DataURL(String rawurl)
           
DataURL(URL url)
           
 
Method Summary
 String getContentEncoding()
           
 int getContentLength()
           
 String getContents()
           
 ByteArrayInputStream getContentsAsStream()
           
 String getEncodedContents()
           
 String getMediaType()
           
 String toExternalForm()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataURL

public DataURL(URL url)
        throws IOException
Throws:
IOException

DataURL

public DataURL(String rawurl)
        throws IOException
Throws:
IOException
Method Detail

getContentLength

public int getContentLength()

getMediaType

public String getMediaType()

getContentEncoding

public String getContentEncoding()

getContents

public String getContents()

getEncodedContents

public String getEncodedContents()

getContentsAsStream

public ByteArrayInputStream getContentsAsStream()
                                         throws IOException
Throws:
IOException

toExternalForm

public String toExternalForm()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2000-2012 Ontopia.