Package jadex.common
Class ResourceInfo
java.lang.Object
jadex.common.ResourceInfo
- All Implemented Interfaces:
AutoCloseable
Info for a resource to load.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe filename.protected InputStreamThe input stream.protected longThe last modified date. -
Constructor Summary
ConstructorsConstructorDescriptionResourceInfo(String filename, InputStream input, long lastmodified) Create a new resource info. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Cleanup the resource info when it is no longer used.Get the filename.Get the input stream.longGet the last modified date.
-
Field Details
-
filename
The filename. -
input
The input stream. -
lastmodified
protected long lastmodifiedThe last modified date.
-
-
Constructor Details
-
ResourceInfo
Create a new resource info.
-
-
Method Details
-
getFilename
Get the filename.- Returns:
- The filename.
-
getInputStream
Get the input stream.- Returns:
- The input stream.
-
getLastModified
public long getLastModified()Get the last modified date.- Returns:
- The last modified date.
-
close
Cleanup the resource info when it is no longer used.- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-