Interface IResourceStream

    • Method Detail

      • getContentType

        java.lang.String getContentType()
        Gets the mime type of this resource
        Returns:
        The mime type of this resource, such as "image/jpeg" or "text/html". Return null to let ResourceStreamRequestHandler handle the Content-Type automatically
      • length

        Bytes length()
        Gets the size of this resource
        Returns:
        The size of this resource in the number of bytes, or null if unknown
      • close

        void close()
            throws java.io.IOException
        Closes the resource. Normally, this includes closing any underlying input stream returned by getInputStream().
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • getLocale

        java.util.Locale getLocale()
        Returns:
        The Locale where this stream did resolve to
      • setLocale

        void setLocale​(java.util.Locale locale)
        This method shouldn't be used from the outside. It is used by the Loaders to set the resolved locale.
        Parameters:
        locale - The Locale where this stream did resolve to.
      • getStyle

        java.lang.String getStyle()
        Returns:
        The Style where this stream did resolve to
      • setStyle

        void setStyle​(java.lang.String style)
        This method shouldn't be used from the outside. It is used by the Loaders to set the resolved Style.
        Parameters:
        style - The style where this stream did resolve to.
      • getVariation

        java.lang.String getVariation()
        Returns:
        The Variation where this stream did resolve to
      • setVariation

        void setVariation​(java.lang.String variation)
        This method shouldn't be used from the outside. It is used by the Loaders to set the resolved variation.
        Parameters:
        variation - The Variation where this stream did resolve to.