Constructor and Description |
---|
FileResource(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,
File directory,
Pattern doNotCopy) |
void |
close() |
void |
deleteOnClose(boolean b) |
protected void |
finalize() |
String |
getExtra() |
File |
getFile() |
long |
lastModified() |
InputStream |
openInputStream() |
void |
setExtra(String extra) |
long |
size() |
String |
toString() |
void |
write(OutputStream out) |
public FileResource(File file)
public InputStream openInputStream() throws FileNotFoundException
openInputStream
in interface Resource
FileNotFoundException
public void write(OutputStream out) throws Exception
public long lastModified()
lastModified
in interface Resource
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void deleteOnClose(boolean b)
public File getFile()
Copyright © 2015 aQute SARL. All rights reserved.