org.rundeck.storage.data
Class DataContent
java.lang.Object
org.rundeck.storage.data.DataContent
- All Implemented Interfaces:
- ContentMeta, HasInputStream
public class DataContent
- extends java.lang.Object
- implements ContentMeta
Basic implementation of ContentMeta
Method Summary |
java.io.InputStream |
getInputStream()
|
java.util.Map<java.lang.String,java.lang.String> |
getMeta()
Return the metadata about the content |
long |
writeContent(java.io.OutputStream out)
Write the content stream to the output stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataContent
public DataContent(HasInputStream lazyStream,
java.util.Map<java.lang.String,java.lang.String> meta)
getMeta
public java.util.Map<java.lang.String,java.lang.String> getMeta()
- Description copied from interface:
ContentMeta
- Return the metadata about the content
- Specified by:
getMeta
in interface ContentMeta
- Returns:
- the metadata
writeContent
public long writeContent(java.io.OutputStream out)
throws java.io.IOException
- Description copied from interface:
HasInputStream
- Write the content stream to the output stream
- Specified by:
writeContent
in interface HasInputStream
- Returns:
- the content stream
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream
in interface HasInputStream
- Throws:
java.io.IOException