Class MunitResource

java.lang.Object
org.mule.munit.tools.util.MunitResource

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

Since:
3.3.2
Author:
Mulesoft Inc.
  • Constructor Details

  • Method Details

    • asStream

      public InputStream asStream()
    • asString

      public String asString(Charset charset)
    • asByteArray

      public byte[] asByteArray()
    • asReusableStream

      public InputStream asReusableStream()