Package com.logicaldoc.util.io
Class AutoDeleteInputStream
java.lang.Object
java.io.InputStream
com.logicaldoc.util.io.AutoDeleteInputStream
- All Implemented Interfaces:
 Closeable,AutoCloseable
Wrapper around a standard InputStream that deletes the file after closing.
- Since:
 - 7.7.1
 - Author:
 - Marco Meschieri - LogicalDOC
 
- 
Constructor Summary
ConstructorsConstructorDescriptionAutoDeleteInputStream(File file) AutoDeleteInputStream(InputStream wrappedStream, File file)  - 
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo 
- 
Constructor Details
- 
AutoDeleteInputStream
- Throws:
 FileNotFoundException
 - 
AutoDeleteInputStream
 
 - 
 - 
Method Details
- 
read
- Specified by:
 readin classInputStream- Throws:
 IOException
 - 
hashCode
public int hashCode() - 
read
- Overrides:
 readin classInputStream- Throws:
 IOException
 - 
equals
 - 
read
- Overrides:
 readin classInputStream- Throws:
 IOException
 - 
skip
- Overrides:
 skipin classInputStream- Throws:
 IOException
 - 
toString
 - 
available
- Overrides:
 availablein classInputStream- Throws:
 IOException
 - 
close
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Overrides:
 closein classInputStream- Throws:
 IOException
 - 
mark
public void mark(int readlimit) - Overrides:
 markin classInputStream
 - 
reset
- Overrides:
 resetin classInputStream- Throws:
 IOException
 - 
markSupported
public boolean markSupported()- Overrides:
 markSupportedin classInputStream
 
 -