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.Object
BaseStreamResource 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 long
getContentLength()
java.lang.String
getContentType()
java.util.Date
getCreationTime()
java.io.InputStream
getInputStream()
java.util.Map<java.lang.String,java.lang.String>
getMeta()
java.util.Date
getModificationTime()
long
writeContent(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:
getMeta
in interfaceorg.rundeck.storage.api.ContentMeta
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfaceResourceMeta
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceResourceMeta
-
getModificationTime
public java.util.Date getModificationTime()
- Specified by:
getModificationTime
in interfaceResourceMeta
-
getCreationTime
public java.util.Date getCreationTime()
- Specified by:
getCreationTime
in interfaceResourceMeta
-
-