com.microfocus.awm.model

## Interface ISavableResource

- All Known Implementing Classes:
    MvsDataset, MvsDatasetMember, MvsResource

      public interface ISavableResource

  Interface for resources which can be opened in an Eclipse editor but require additional proceeding to be properly saved.

  Example: A z/OS member which is downloaded in the Eclipse workspace and opened in a text editor. While making changes and saving the editor would only save the contents to the workspace copy, an additional "save" action is required to upload the changes back on the mainframe. Copyright (C) Micro Focus 2010

  Author:
    Ralf Pakosch

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getName()`
    `void` | `save(java.io.InputStream pIs)` Overwrites the resource's content with the given `InputStream`.
    `void` | `unlock(org.eclipse.core.runtime.IProgressMonitor pMon)` Resets the exclusive use of the resource if necessary.

- - ### Method Detail

    - #### getName

          java.lang.String getName()

      Returns:
        an unambiguous name for the resource

    - #### save

          void save(java.io.InputStream pIs)
             throws java.io.IOException

      Overwrites the resource's content with the given `InputStream`.
      Parameters:
        `pIs` - the new content of the resource
      Throws:
        `java.io.IOException` - if a I/O exception of any kind occurs during the save action

    - #### unlock

          void unlock(org.eclipse.core.runtime.IProgressMonitor pMon)
               throws java.io.IOException

      Resets the exclusive use of the resource if necessary.
      Parameters:
        `pMon` - progress monitor
      Throws:
        `java.io.IOException` - if unlocking the resource fails

Copyright © 2015 Micro Focus GmbH. All rights reserved.