| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
BUFFER_SIZE |
(package private) boolean |
deleteOnClose |
(package private) java.lang.String |
extra |
(package private) java.io.File |
file |
| 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() |
(package private) static void |
copy(Resource resource,
java.io.OutputStream out) |
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() |
(package private) static void |
traverse(Jar jar,
int rootlength,
java.io.File directory,
java.util.regex.Pattern doNotCopy) |
void |
write(java.io.OutputStream out) |
static final int BUFFER_SIZE
java.io.File file
java.lang.String extra
boolean deleteOnClose
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
static void copy(Resource resource, java.io.OutputStream out) throws java.lang.Exception
java.lang.Exceptionstatic void traverse(Jar jar, int rootlength, java.io.File directory, java.util.regex.Pattern doNotCopy)
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