net.ontopia.net.data
Class DataURL
java.lang.Object
net.ontopia.net.data.DataURL
public class DataURL
- extends Object
INTERNAL: A class for parsing and representing data URLs.
DataURL
public DataURL(URL url)
throws IOException
- Throws:
IOException
DataURL
public DataURL(String rawurl)
throws IOException
- Throws:
IOException
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.