public class ResourceInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
filename
The filename.
|
protected java.io.InputStream |
input
The input stream.
|
protected long |
lastmodified
The last modified date.
|
Constructor and Description |
---|
ResourceInfo(java.lang.String filename,
java.io.InputStream input,
long lastmodified)
Create a new resource info.
|
Modifier and Type | Method and 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.
|
protected java.lang.String filename
protected java.io.InputStream input
protected long lastmodified
public ResourceInfo(java.lang.String filename, java.io.InputStream input, long lastmodified)
public java.lang.String getFilename()
public java.io.InputStream getInputStream()
public long getLastModified()
public void cleanup()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable