Package org.codelibs.curl.io
Class ContentOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.commons.io.output.ThresholdingOutputStream
-
- org.apache.commons.io.output.DeferredFileOutputStream
-
- org.codelibs.curl.io.ContentOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ContentOutputStream extends org.apache.commons.io.output.DeferredFileOutputStream
-
-
Constructor Summary
Constructors Constructor Description ContentOutputStream(int threshold, File tmpDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()FilegetFile()-
Methods inherited from class org.apache.commons.io.output.DeferredFileOutputStream
getData, getStream, isInMemory, thresholdReached, writeTo
-
Methods inherited from class org.apache.commons.io.output.ThresholdingOutputStream
checkThreshold, flush, getByteCount, getThreshold, isThresholdExceeded, resetByteCount, setByteCount, write, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Field Detail
-
logger
protected static final Logger logger
-
PREFIX
protected static final String PREFIX
- See Also:
- Constant Field Values
-
SUFFIX
protected static final String SUFFIX
- See Also:
- Constant Field Values
-
done
protected boolean done
-
-
Constructor Detail
-
ContentOutputStream
public ContentOutputStream(int threshold, File tmpDir)
-
-
Method Detail
-
getFile
public File getFile()
- Overrides:
getFilein classorg.apache.commons.io.output.DeferredFileOutputStream
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.commons.io.output.DeferredFileOutputStream- Throws:
IOException
-
-