public static class OutlookMessageAttachment.MemoryInputStreamCreator extends Object implements OutlookMessageAttachment.InputStreamCreator
InputStream from a given source InputStream.
The content of the source InputStream will be stored in-memory.| Constructor and Description |
|---|
MemoryInputStreamCreator(InputStream source)
Creates a new
MemoryInputStreamCreator with the specified source. |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
newInputStream(OutlookMessageAttachment omt)
Reads a new
InputStream with the content of the source. |
public MemoryInputStreamCreator(InputStream source)
MemoryInputStreamCreator with the specified source.source - The source.public InputStream newInputStream(OutlookMessageAttachment omt) throws IOException
InputStream with the content of the source.
The first time this method is called, the source InputStream will be fully
read and stored in-memory. Then, a new ByteArrayInputStream is
returned.newInputStream in interface OutlookMessageAttachment.InputStreamCreatoromt - The attachment.ByteArrayInputStream.IOException - If an I/O error occurs.Copyright © 2017. All rights reserved.