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 SummaryConstructorsConstructorDescriptionAutoDeleteInputStream(File file) AutoDeleteInputStream(InputStream wrappedStream, File file) 
- 
Method SummaryMethods inherited from class java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
- 
Constructor Details- 
AutoDeleteInputStream- Throws:
- FileNotFoundException
 
- 
AutoDeleteInputStream
 
- 
- 
Method Details- 
read- Specified by:
- readin class- InputStream
- Throws:
- IOException
 
- 
hashCodepublic int hashCode()
- 
read- Overrides:
- readin class- InputStream
- Throws:
- IOException
 
- 
equals
- 
read- Overrides:
- readin class- InputStream
- Throws:
- IOException
 
- 
skip- Overrides:
- skipin class- InputStream
- Throws:
- IOException
 
- 
toString
- 
available- Overrides:
- availablein class- InputStream
- Throws:
- IOException
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- InputStream
- Throws:
- IOException
 
- 
markpublic void mark(int readlimit) - Overrides:
- markin class- InputStream
 
- 
reset- Overrides:
- resetin class- InputStream
- Throws:
- IOException
 
- 
markSupportedpublic boolean markSupported()- Overrides:
- markSupportedin class- InputStream
 
 
-