public class Streamables
extends java.lang.Object
Streamable
instances.Constructor and Description |
---|
Streamables() |
Modifier and Type | Method and Description |
---|---|
static Streamable |
combine(java.lang.Iterable<Streamable> streamables)
Combine a series of streamable instances into a single result.
|
static Streamable |
combine(Streamable... streamables)
Combine a series of streamable instances into a single result.
|
static Streamable |
empty()
Create an empty streamable that will do nothing when its
writeTo() method is called. |
static Streamable |
from(java.lang.String source)
Produce a streamable from a string.
|
static Streamable |
from(XmlStreamWriterTemplate template,
XmlStreamWriterCallback callback)
Create a streamable that will produce the result of executing the provide callback within the template.
|
static java.lang.String |
writeToString(Streamable streamable)
Write the contents of a streamable to a string.
|
public static Streamable from(java.lang.String source)
source
- the string that needs to be streamedpublic static Streamable combine(Streamable... streamables)
streamables
- the streamables that are to be combined.public static Streamable combine(java.lang.Iterable<Streamable> streamables)
streamables
- the streamables that are to be combined.public static Streamable from(XmlStreamWriterTemplate template, XmlStreamWriterCallback callback)
writeTo
method is called.template
- the template in which to execute the callbackcallback
- the callback to executepublic static Streamable empty()
writeTo()
method is called.public static java.lang.String writeToString(Streamable streamable)
streamable
- the streamable to writeCopyright © 2003-2014 Atlassian. All Rights Reserved.