com.microfocus.awm.control.toolexecution

## Class StringFileContents

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

- All Implemented Interfaces:
    IFileContents

      public class StringFileContents
      extends java.lang.Object
      implements IFileContents

  Simple file contents implementation describing the contents by a `String`.
  Author:
    Micro Focus

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StringFileContents(java.lang.String pContents)` Creates the file contents.

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### StringFileContents

          public StringFileContents(java.lang.String pContents)

      Creates the file contents. The given `String` is returned unchanged by `getContents()`.
      Parameters:
        `pContents` - the file contents

  - ### Method Detail

    - #### getContents

          public java.lang.String getContents()

      Description copied from interface: `IFileContents`
      Gets the file descriptor contents.
      Specified by:
        `getContents` in interface `IFileContents`
      Returns:
        the file descriptor contents

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

Copyright © 2015 Micro Focus GmbH. All rights reserved.