Class JXCSkinDirSource

    • Constructor Summary

      Constructors 
      Constructor Description
      JXCSkinDirSource​(@NotNull java.nio.file.Path dir)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.io.InputStream getInputStream​(@NotNull java.lang.String name)
      Returns an InputStream for a resource name.
      @NotNull java.lang.String getURI​(@NotNull java.lang.String name)
      Returns a description of the location of a resource name.
      • Methods inherited from class java.lang.Object

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

      • JXCSkinDirSource

        public JXCSkinDirSource​(@NotNull
                                @NotNull java.nio.file.Path dir)
                         throws JXCSkinException
        Creates a new instance.
        Parameters:
        dir - the base directory
        Throws:
        JXCSkinException - if the skin cannot be loaded
    • Method Detail

      • getInputStream

        @NotNull
        public @NotNull java.io.InputStream getInputStream​(@NotNull
                                                           @NotNull java.lang.String name)
                                                    throws java.io.IOException
        Description copied from interface: JXCSkinSource
        Returns an InputStream for a resource name.
        Parameters:
        name - the resource name
        Returns:
        the input stream for the resource
        Throws:
        java.io.IOException - if the resource cannot be loaded
      • getURI

        @NotNull
        public @NotNull java.lang.String getURI​(@NotNull
                                                @NotNull java.lang.String name)
        Description copied from interface: JXCSkinSource
        Returns a description of the location of a resource name.
        Parameters:
        name - the resource name
        Returns:
        the description of the resource