Class PackageResourceStream

    • Constructor Detail

      • PackageResourceStream

        public PackageResourceStream​(Class<?> scope,
                                     String path,
                                     Locale locale,
                                     String style,
                                     String variation)
        Obtains an IResourceStream from the application's IResourceStreamLocator.locate(Class, String)
        Parameters:
        scope - This argument will be used to get the class loader for loading the package resource, and to determine what package it is in.
        path - The path to the resource
        locale - the locale of the resource to get
        style - the style of the resource to get
        variation - the variation of the resource to get
    • Method Detail

      • getContentType

        public String getContentType()
        Specified by:
        getContentType in interface org.apache.wicket.util.resource.IResourceStream
        Overrides:
        getContentType in class org.apache.wicket.util.resource.AbstractResourceStream
      • getInputStream

        public InputStream getInputStream()
                                   throws org.apache.wicket.util.resource.ResourceStreamNotFoundException
        Throws:
        org.apache.wicket.util.resource.ResourceStreamNotFoundException
      • length

        public org.apache.wicket.util.lang.Bytes length()
        Specified by:
        length in interface org.apache.wicket.util.resource.IResourceStream
        Overrides:
        length in class org.apache.wicket.util.resource.AbstractResourceStream
      • lastModifiedTime

        public Instant lastModifiedTime()
        Specified by:
        lastModifiedTime in interface org.apache.wicket.util.watch.IModifiable
        Overrides:
        lastModifiedTime in class org.apache.wicket.util.resource.AbstractResourceStream