Package jadex.common

Class ResourceInfo

java.lang.Object
jadex.common.ResourceInfo
All Implemented Interfaces:
AutoCloseable

public class ResourceInfo extends Object implements AutoCloseable
Info for a resource to load.
  • Field Details

    • filename

      protected String filename
      The filename.
    • input

      protected InputStream input
      The input stream.
    • lastmodified

      protected long lastmodified
      The last modified date.
  • Constructor Details

    • ResourceInfo

      public ResourceInfo(String filename, InputStream input, long lastmodified)
      Create a new resource info.
  • Method Details

    • getFilename

      public String getFilename()
      Get the filename.
      Returns:
      The filename.
    • getInputStream

      public InputStream getInputStream()
      Get the input stream.
      Returns:
      The input stream.
    • getLastModified

      public long getLastModified()
      Get the last modified date.
      Returns:
      The last modified date.
    • close

      public void close() throws Exception
      Cleanup the resource info when it is no longer used.
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception