|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.content.render.xhtml.Streamables
public class Streamables
Convenience class for common operations to construct or convert Streamable
instances.
Constructor Summary | |
---|---|
Streamables()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Streamables()
Method Detail |
---|
public static Streamable from(java.lang.String source)
source
- the string that needs to be streamed
public 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 execute
public static Streamable empty()
writeTo()
method is called.
public static java.lang.String writeToString(Streamable streamable)
streamable
- the streamable to write
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |