public class AttachmentDeserializer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTACHMENT_DIRECTORY |
static String |
ATTACHMENT_MAX_SIZE |
static String |
ATTACHMENT_MEMORY_THRESHOLD |
static int |
THRESHOLD |
| Constructor and Description |
|---|
AttachmentDeserializer(Message message) |
AttachmentDeserializer(Message message,
List<String> supportedTypes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Check for more attachment.
|
void |
initializeAttachments() |
protected void |
initializeRootMessage() |
boolean |
isLazyLoading() |
void |
markClosed(DelegatingInputStream delegatingInputStream) |
AttachmentImpl |
readNext() |
void |
setLazyLoading(boolean lazyLoading) |
public static final String ATTACHMENT_DIRECTORY
public static final String ATTACHMENT_MEMORY_THRESHOLD
public static final String ATTACHMENT_MAX_SIZE
public static final int THRESHOLD
public AttachmentDeserializer(Message message)
public void initializeAttachments()
throws IOException
IOExceptionprotected void initializeRootMessage()
throws IOException
IOExceptionpublic AttachmentImpl readNext() throws IOException
IOExceptionpublic boolean isLazyLoading()
public void setLazyLoading(boolean lazyLoading)
public void markClosed(DelegatingInputStream delegatingInputStream) throws IOException
IOExceptionpublic boolean hasNext()
throws IOException
IOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.