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.Exception
public java.io.InputStream openInputStream() throws java.io.FileNotFoundException
openInputStream
in interface Resource
java.io.FileNotFoundException
public static void build(Jar jar, java.io.File directory, java.util.regex.Pattern doNotCopy)
public java.lang.String toString()
toString
in class java.lang.Object
public void write(java.io.OutputStream out) throws java.lang.Exception
public long lastModified()
lastModified
in interface Resource
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public void deleteOnClose(boolean b)
public java.io.File getFile()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable