org.apache.cxf.attachment
Class AttachmentDeserializer

java.lang.Object
  extended by org.apache.cxf.attachment.AttachmentDeserializer

public class AttachmentDeserializer
extends java.lang.Object


Field Summary
static java.lang.String ATTACHMENT_DIRECTORY
           
static java.lang.String ATTACHMENT_MEMORY_THRESHOLD
           
static int THRESHOLD
           
 
Constructor Summary
AttachmentDeserializer(Message message)
           
AttachmentDeserializer(Message message, java.util.List<java.lang.String> supportedTypes)
           
 
Method Summary
 boolean hasNext()
          Check for more attachment.
 void initializeAttachments()
           
protected  void initializeRootMessage()
           
 boolean isLazyLoading()
           
 void markClosed(org.apache.cxf.attachment.DelegatingInputStream delegatingInputStream)
           
 AttachmentImpl readNext()
           
 void setLazyLoading(boolean lazyLoading)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTACHMENT_DIRECTORY

public static final java.lang.String ATTACHMENT_DIRECTORY
See Also:
Constant Field Values

ATTACHMENT_MEMORY_THRESHOLD

public static final java.lang.String ATTACHMENT_MEMORY_THRESHOLD
See Also:
Constant Field Values

THRESHOLD

public static final int THRESHOLD
See Also:
Constant Field Values
Constructor Detail

AttachmentDeserializer

public AttachmentDeserializer(Message message)

AttachmentDeserializer

public AttachmentDeserializer(Message message,
                              java.util.List<java.lang.String> supportedTypes)
Method Detail

initializeAttachments

public void initializeAttachments()
                           throws java.io.IOException
Throws:
java.io.IOException

initializeRootMessage

protected void initializeRootMessage()
                              throws java.io.IOException
Throws:
java.io.IOException

readNext

public AttachmentImpl readNext()
                        throws java.io.IOException
Throws:
java.io.IOException

isLazyLoading

public boolean isLazyLoading()

setLazyLoading

public void setLazyLoading(boolean lazyLoading)

markClosed

public void markClosed(org.apache.cxf.attachment.DelegatingInputStream delegatingInputStream)
                throws java.io.IOException
Throws:
java.io.IOException

hasNext

public boolean hasNext()
                throws java.io.IOException
Check for more attachment.

Returns:
whether there is more attachment or not. It will not deserialize the next attachment.
Throws:
java.io.IOException


Apache CXF