com.atlassian.confluence.core
Class InputStreamSerializer
java.lang.Object
com.atlassian.confluence.core.InputStreamSerializer
public class InputStreamSerializer
- extends Object
Composes InputStreams
.
- Since:
- 5.2
lenient
public static InputStreamSerializer lenient()
- Returns:
- a lenient serializer, meaning that a potential escape of an underlying
InputStream
factory
will cause the serialization to continue, the caught exception will go to the log
eager
public static InputStreamSerializer eager()
- Returns:
- an eager serializer, meaning that a potential escape of an underlying
InputStream
factory
will cause the serialization to escape
eagerInDevMode
public static InputStreamSerializer eagerInDevMode()
- Returns:
- a serializer which will behave like
eager()
in dev
mode
, and like lenient()
otherwise
add
public InputStreamSerializer add(Callable<InputStream>... inputStreamFactories)
addAll
public InputStreamSerializer addAll(Iterable<Callable<InputStream>> inputStreamFactories)
addDataSource
public InputStreamSerializer addDataSource(DataSource... dataSources)
addAllDataSources
public InputStreamSerializer addAllDataSources(Iterable<DataSource> dataSources)
toString
public String toString()
- Overrides:
toString
in class Object