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 String
The filename.protected InputStream
The input stream.protected long
The last modified date. -
Constructor Summary
ConstructorsConstructorDescriptionResourceInfo
(String filename, InputStream input, long lastmodified) Create a new resource info. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Cleanup the resource info when it is no longer used.Get the filename.Get the input stream.long
Get 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:
close
in interfaceAutoCloseable
- Throws:
Exception
-