Package nu.validator.io
Class DataUri
java.lang.Object
nu.validator.io.DataUri
public class DataUri
extends java.lang.Object
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description java.lang.String
getContentType()
Returns the contentType.java.io.InputStream
getInputStream()
Returns the inputStream.protected void
init(io.mola.galimatias.URL url)
static boolean
startsWithData(java.lang.String uri)
-
Constructor Details
-
Method Details
-
startsWithData
public static boolean startsWithData(java.lang.String uri) -
init
protected void init(io.mola.galimatias.URL url) throws java.io.IOException, java.net.MalformedURLException- Parameters:
url
-- Throws:
java.net.MalformedURLException
java.io.IOException
-
getContentType
public java.lang.String getContentType()Returns the contentType.- Returns:
- the contentType
-
getInputStream
public java.io.InputStream getInputStream()Returns the inputStream.- Returns:
- the inputStream
-