| Constructor and Description |
|---|
FileResource(java.io.File file) |
FileResource(Resource r)
Turn a resource into a file so that anything in the conversion is properly caught
|
| Modifier and Type | Method and Description |
|---|---|
static void |
build(Jar jar,
java.io.File directory,
java.util.regex.Pattern doNotCopy) |
void |
close() |
void |
deleteOnClose(boolean b) |
protected void |
finalize() |
java.lang.String |
getExtra() |
java.io.File |
getFile() |
long |
lastModified() |
java.io.InputStream |
openInputStream() |
void |
setExtra(java.lang.String extra) |
long |
size() |
java.lang.String |
toString() |
void |
write(java.io.OutputStream out) |
public FileResource(java.io.File file)
public FileResource(Resource r) throws java.lang.Exception
r - java.lang.Exceptionpublic java.io.InputStream openInputStream()
throws java.io.FileNotFoundException
openInputStream in interface Resourcejava.io.FileNotFoundExceptionpublic static void build(Jar jar, java.io.File directory, java.util.regex.Pattern doNotCopy)
public java.lang.String toString()
toString in class java.lang.Objectpublic void write(java.io.OutputStream out)
throws java.lang.Exception
public long lastModified()
lastModified in interface Resourcepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void deleteOnClose(boolean b)
public java.io.File getFile()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable