public class GetResourceFunctions extends Object
| Constructor and Description |
|---|
GetResourceFunctions() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getResourceAsByteArray(String path) |
InputStream |
getResourceAsReusableStream(String path) |
InputStream |
getResourceAsStream(String path) |
String |
getResourceAsString(String path) |
@Summary(value="Get resource as a byte array")
public byte[] getResourceAsByteArray(@Example(value="example.json")
String path)
@Summary(value="Get resource as a string") public String getResourceAsString(@Example(value="example.json") String path)
@Summary(value="Get resource as a stream") public InputStream getResourceAsStream(@Example(value="example.json") String path)
@Summary(value="Get resource as a stream that can be read multiple times") public InputStream getResourceAsReusableStream(@Example(value="example.json") String path)
Copyright © 2017 MuleSoft, Inc.. All rights reserved.