Package org.artifactory.resource
Interface ResourceStreamHandle
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
public interface ResourceStreamHandle extends java.io.CloseableA handle object that will be used for sending back a resource as stream. The stream close() method is typically called back automatically by the caller so the handle creator only needs to provide the close() implementation.- Author:
- Yoav Landman
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the underlying input streamjava.io.InputStreamgetInputStream()longgetSize()
-
-
-
Method Detail
-
getInputStream
java.io.InputStream getInputStream()
- Returns:
- The input stream of this handle
-
getSize
long getSize()
- Returns:
- The size of the stream or -1 if unknown
-
close
void close()
Closes the underlying input stream- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-