public class StreamUtils extends Object
| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <K> Map<K,Object> |
resolveCursorProvider(Map<K,Object> map)
Creates a new
Map where values in entries that are InputStream or TypedValue will be
replaced with CursorProvider. |
static Object |
resolveCursorProvider(Object value)
|
public static <K> Map<K,Object> resolveCursorProvider(Map<K,Object> map)
Map where values in entries that are InputStream or TypedValue will be
replaced with CursorProvider. Take into account that these streams will be loaded in
memory as byte[] and wrapped with a CursorProvider to allow accessing it to be
read multiple times by honoring the Mule's streaming API.
If a Cursor is present as a value it will get its provider if this one is not closed.K - the type of the key.map - to be transformed/replaced by a CursorProviderCursorProvider for those entries that
have a stream value.public static Object resolveCursorProvider(Object value)
InputStream or TypedValue it will return a
CursorProvider. Take into account that the stream will be loaded in memory as
byte[] and wrapped with a CursorProvider to allow accessing it to be read
multiple times by honoring the Mule's streaming API.
If a Cursor is passed as parameter it will get its provider if this one is not closed.value - to be transformed/replaced by a CursorProviderCursorProvider or a
TypedValue.Copyright © 2022. All rights reserved.