Package com.dtolabs.rundeck.core.storage
Class BaseStreamResource
- java.lang.Object
-
- com.dtolabs.rundeck.core.storage.BaseStreamResource
-
- All Implemented Interfaces:
ResourceMeta,org.rundeck.storage.api.ContentMeta,org.rundeck.storage.api.HasInputStream
public class BaseStreamResource extends java.lang.ObjectBaseStreamResource is ...- Since:
- 2014-03-28
-
-
Constructor Summary
Constructors Constructor Description BaseStreamResource(java.util.Map<java.lang.String,java.lang.String> meta, org.rundeck.storage.api.HasInputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetContentLength()java.lang.StringgetContentType()java.util.DategetCreationTime()java.io.InputStreamgetInputStream()java.util.Map<java.lang.String,java.lang.String>getMeta()java.util.DategetModificationTime()longwriteContent(java.io.OutputStream outputStream)
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Throws:
java.io.IOException
-
writeContent
public long writeContent(java.io.OutputStream outputStream) throws java.io.IOException- Throws:
java.io.IOException
-
getMeta
public java.util.Map<java.lang.String,java.lang.String> getMeta()
- Specified by:
getMetain interfaceorg.rundeck.storage.api.ContentMeta
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentTypein interfaceResourceMeta
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceResourceMeta
-
getModificationTime
public java.util.Date getModificationTime()
- Specified by:
getModificationTimein interfaceResourceMeta
-
getCreationTime
public java.util.Date getCreationTime()
- Specified by:
getCreationTimein interfaceResourceMeta
-
-