| Constructor and Description |
|---|
FileResource(java.io.File file) |
FileResource(java.nio.file.Path path) |
FileResource(Resource r)
Turn a resource into a file so that anything in the conversion is
properly caught
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
buffer() |
void |
close() |
void |
deleteOnClose(boolean b) |
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)
throws java.io.IOException
java.io.IOExceptionpublic FileResource(java.nio.file.Path path)
throws java.io.IOException
java.io.IOExceptionpublic FileResource(Resource r) throws java.lang.Exception
r - java.lang.Exceptionpublic java.nio.ByteBuffer buffer()
throws java.lang.Exception
public java.io.InputStream openInputStream()
throws java.lang.Exception
openInputStream in interface Resourcejava.lang.Exceptionpublic 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()
Copyright (c) aQute SARL (2000, 2017) and others. All Rights Reserved.