public class MunitResource extends Object
This is the class returned by the GetResourceFunction. It has a path that points to the resource wanted, and it has a couple of methods that can convert its content into String, InputStream or byte array
| Constructor and Description |
|---|
MunitResource(String path,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asByteArray() |
InputStream |
asReusableStream() |
InputStream |
asStream() |
String |
asString(Charset charset) |
public MunitResource(String path, ClassLoader classLoader)
public InputStream asStream()
public byte[] asByteArray()
public InputStream asReusableStream()
Copyright © 2022 MuleSoft, Inc.. All rights reserved.