Package jadex.commons

Class ResourceInfo


  • public class ResourceInfo
    extends java.lang.Object
    Info for a resource to load.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String filename
      The filename.
      protected java.io.InputStream input
      The input stream.
      protected long lastmodified
      The last modified date.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceInfo​(java.lang.String filename, java.io.InputStream input, long lastmodified)
      Create a new resource info.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanup()
      Cleanup the resource info when it is no longer used.
      protected void finalize()
      On finalize, close the input stream.
      java.lang.String getFilename()
      Get the filename.
      java.io.InputStream getInputStream()
      Get the input stream.
      long getLastModified()
      Get the last modified date.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • filename

        protected java.lang.String filename
        The filename.
      • input

        protected java.io.InputStream input
        The input stream.
      • lastmodified

        protected long lastmodified
        The last modified date.
    • Constructor Detail

      • ResourceInfo

        public ResourceInfo​(java.lang.String filename,
                            java.io.InputStream input,
                            long lastmodified)
        Create a new resource info.
    • Method Detail

      • getFilename

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

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

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

        public void cleanup()
        Cleanup the resource info when it is no longer used.
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        On finalize, close the input stream.
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable