Methods Summary |
---|
public void | delete()Deletes this file as soon as possible.
|
public java.lang.String | getAbsolutePath()Returns the absolute path including file name of this
TempFile . The path may be null if this is
an in-memory file.
|
public java.io.InputStream | getInputStream()Gets an InputStream to read bytes from this temporary file.
NOTE: The stream should NOT be wrapped in
BufferedInputStream by the caller. If the implementing
TempFile creates a FileInputStream or any
other stream which would benefit from being buffered it's the
TempFile 's responsibility to wrap it.
|
public java.io.OutputStream | getOutputStream()Gets an OutputStream to write bytes to this temporary file.
NOTE: The stream should NOT be wrapped in
BufferedOutputStream by the caller. If the implementing
TempFile creates a FileOutputStream or any
other stream which would benefit from being buffered it's the
TempFile 's responsibility to wrap it.
|
public boolean | isInMemory()Determines if this is an in-memory file.
|
public long | length()Gets the length of this temporary file.
|