com.microfocus.awm.control.toolexecution

## Class InputStreamFileContents

- java.lang.Object
- - com.microfocus.awm.control.toolexecution.InputStreamFileContents

- All Implemented Interfaces:
    IFileContents

      public class InputStreamFileContents
      extends java.lang.Object
      implements IFileContents

  Implementation of `IFileContents` which uses an input stream and character set to describe the file data.
  Author:
    Micro Focus

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `InputStreamFileContents(java.io.InputStream pInputStream, java.nio.charset.Charset pCharset)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getContents()` Gets the file descriptor contents.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### InputStreamFileContents

          public InputStreamFileContents(java.io.InputStream pInputStream,
                                         java.nio.charset.Charset pCharset)

      Constructor.
      Parameters:
        `pInputStream` - the file contents
        `pCharset` - character set the contents are encoded in

  - ### Method Detail

    - #### getContents

          public java.lang.String getContents()
                                       throws java.io.IOException

      Description copied from interface: `IFileContents`
      Gets the file descriptor contents.
      Specified by:
        `getContents` in interface `IFileContents`
      Returns:
        the file descriptor contents
      Throws:
        `java.io.IOException` - if any exception occurs while attempting to return the file contents

Copyright © 2015 Micro Focus GmbH. All rights reserved.