Class AbstractResourceStream

    • Constructor Detail

      • AbstractResourceStream

        public AbstractResourceStream()
    • Method Detail

      • setLocale

        public void setLocale​(Locale locale)
        Description copied from interface: IResourceStream
        This method shouldn't be used from the outside. It is used by the Loaders to set the resolved locale.
        Specified by:
        setLocale in interface IResourceStream
        Parameters:
        locale - The Locale where this stream did resolve to.
      • setStyle

        public void setStyle​(String style)
        Description copied from interface: IResourceStream
        This method shouldn't be used from the outside. It is used by the Loaders to set the resolved Style.
        Specified by:
        setStyle in interface IResourceStream
        Parameters:
        style - The style where this stream did resolve to.
      • setVariation

        public void setVariation​(String variation)
        Description copied from interface: IResourceStream
        This method shouldn't be used from the outside. It is used by the Loaders to set the resolved variation.
        Specified by:
        setVariation in interface IResourceStream
        Parameters:
        variation - The Variation where this stream did resolve to.
      • length

        public Bytes length()
        Description copied from interface: IResourceStream
        Gets the size of this resource
        Specified by:
        length in interface IResourceStream
        Returns:
        The size of this resource in the number of bytes, or null if unknown
      • getContentType

        public String getContentType()
        Description copied from interface: IResourceStream
        Gets the mime type of this resource
        Specified by:
        getContentType in interface IResourceStream
        Returns:
        The mime type of this resource, such as "image/jpeg" or "text/html". Return null to let ResourceStreamRequestHandler handle the Content-Type automatically
      • lastModifiedTime

        public Instant lastModifiedTime()
        Description copied from interface: IModifiable
        Gets the last time this modifiable thing changed.
        Specified by:
        lastModifiedTime in interface IModifiable
        Returns:
        the last modification Time or null if that information is not available