Interface IResourceStream

    • Method Detail

      • getContentType

        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
      • getLocale

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

        void setLocale​(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

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

        void setStyle​(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

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

        void setVariation​(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.