com.atlassian.confluence.core
Class InputStreamSerializer

java.lang.Object
  extended by com.atlassian.confluence.core.InputStreamSerializer

public class InputStreamSerializer
extends java.lang.Object

Composes InputStreams.

Since:
5.2

Method Summary
 InputStreamSerializer add(java.util.concurrent.Callable<java.io.InputStream>... inputStreamFactories)
           
 InputStreamSerializer addAll(java.lang.Iterable<java.util.concurrent.Callable<java.io.InputStream>> inputStreamFactories)
           
 InputStreamSerializer addAllDataSources(java.lang.Iterable<javax.activation.DataSource> dataSources)
           
 InputStreamSerializer addDataSource(javax.activation.DataSource... dataSources)
           
static InputStreamSerializer eager()
           
static InputStreamSerializer eagerInDevMode()
           
static InputStreamSerializer lenient()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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(java.util.concurrent.Callable<java.io.InputStream>... inputStreamFactories)

addAll

public InputStreamSerializer addAll(java.lang.Iterable<java.util.concurrent.Callable<java.io.InputStream>> inputStreamFactories)

addDataSource

public InputStreamSerializer addDataSource(javax.activation.DataSource... dataSources)

addAllDataSources

public InputStreamSerializer addAllDataSources(java.lang.Iterable<javax.activation.DataSource> dataSources)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.