Package org.codelibs.curl.io
Class ContentCache
- java.lang.Object
-
- org.codelibs.curl.io.ContentCache
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ContentCache extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description ContentCache(byte[] data)ContentCache(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()InputStreamgetInputStream()
-
-
-
Field Detail
-
logger
protected static final Logger logger
-
-
Constructor Detail
-
ContentCache
public ContentCache(byte[] data)
-
ContentCache
public ContentCache(File file)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getInputStream
public InputStream getInputStream() throws IOException
- Throws:
IOException
-
-