Class DataUri

java.lang.Object
nu.validator.io.DataUri

public class DataUri
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    DataUri​(io.mola.galimatias.URL url)  
    DataUri​(java.lang.String url)  
  • 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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DataUri

      public DataUri​(java.lang.String url) throws java.io.IOException
      Throws:
      java.io.IOException
    • DataUri

      public DataUri​(io.mola.galimatias.URL url) throws java.io.IOException, java.net.MalformedURLException
      Parameters:
      url -
      Throws:
      java.net.MalformedURLException
      java.io.IOException
  • 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