Package jadex.commons
Class ResourceInfo
- java.lang.Object
- 
- jadex.commons.ResourceInfo
 
- 
 public class ResourceInfo extends java.lang.ObjectInfo for a resource to load.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringfilenameThe filename.protected java.io.InputStreaminputThe input stream.protected longlastmodifiedThe last modified date.
 - 
Constructor SummaryConstructors Constructor Description ResourceInfo(java.lang.String filename, java.io.InputStream input, long lastmodified)Create a new resource info.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()Cleanup the resource info when it is no longer used.protected voidfinalize()On finalize, close the input stream.java.lang.StringgetFilename()Get the filename.java.io.InputStreamgetInputStream()Get the input stream.longgetLastModified()Get the last modified date.
 
- 
- 
- 
Method Detail- 
getFilenamepublic java.lang.String getFilename() Get the filename.- Returns:
- The filename.
 
 - 
getInputStreampublic java.io.InputStream getInputStream() Get the input stream.- Returns:
- The input stream.
 
 - 
getLastModifiedpublic long getLastModified() Get the last modified date.- Returns:
- The last modified date.
 
 - 
cleanuppublic void cleanup() Cleanup the resource info when it is no longer used.
 - 
finalizeprotected void finalize() throws java.lang.ThrowableOn finalize, close the input stream.- Overrides:
- finalizein class- java.lang.Object
- Throws:
- java.lang.Throwable
 
 
- 
 
-