Class Resources.ByteArrayResource

java.lang.Object
org.citrusframework.spi.Resources.ByteArrayResource
All Implemented Interfaces:
Resource
Enclosing class:
Resources

public static class Resources.ByteArrayResource extends Object implements Resource
Resource with given byte array content.
  • Constructor Details

    • ByteArrayResource

      public ByteArrayResource(byte[] content)
  • Method Details

    • getLocation

      public String getLocation()
      Description copied from interface: Resource
      The location of the resource.
      Specified by:
      getLocation in interface Resource
    • exists

      public boolean exists()
      Description copied from interface: Resource
      Whether this resource exists.
      Specified by:
      exists in interface Resource
    • getInputStream

      public InputStream getInputStream()
      Description copied from interface: Resource
      Returns an InputStream that reads from the underlying resource.

      Each invocation must return a new InputStream instance.
      Specified by:
      getInputStream in interface Resource
    • getFile

      public File getFile()
      Description copied from interface: Resource
      Return the file associated with this resource.
      Specified by:
      getFile in interface Resource
      Returns: