|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TempFile
Method Summary | |
---|---|
void |
delete()
Deletes this file as soon as possible. |
java.lang.String |
getAbsolutePath()
Returns the absolute path including file name of this TempFile . |
java.io.InputStream |
getInputStream()
Gets an InputStream to read bytes from this temporary file. |
java.io.OutputStream |
getOutputStream()
Gets an OutputStream to write bytes to this temporary file. |
boolean |
isInMemory()
Determines if this is an in-memory file. |
long |
length()
Gets the length of this temporary file. |
Method Detail |
---|
java.io.InputStream getInputStream() throws java.io.IOException
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.
java.io.IOException
java.io.OutputStream getOutputStream() throws java.io.IOException
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.
java.io.IOException
java.lang.String getAbsolutePath()
TempFile
. The path may be null
if this is
an in-memory file.
void delete()
boolean isInMemory()
true
if this file is currently in memory,
false
otherwise.long length()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |