com.microfocus.awm.remote

## Interface IGetDataResponse

- All Known Implementing Classes:
    LocalFileGetDataResponse, SimpleGetdataResponse

      public interface IGetDataResponse

  Interface for a GETDATA server response.

  Since implementations usually contain an `InputStream` callers should either read or close it.

  Author:
    Micro Focus
  See Also:
    `getInputStream()`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.io.InputStream` | `getInputStream()`
    `java.lang.String` | `getLocalCodePage()`
    `boolean` | `isWriteProtected()` Returns whether the response restricts the re-upload of the contents.

- - ### Method Detail

    - #### isWriteProtected

          boolean isWriteProtected()

      Returns whether the response restricts the re-upload of the contents. This happens if the returned data was mutated or was not intended to be changed.
      Returns:
        `true` if the received data is write protected and `false` otherwise.

    - #### getInputStream

          java.io.InputStream getInputStream()
                                      throws java.io.IOException

      Returns:
        the InputStream usually containing the requested data
      Throws:
        `java.io.IOException` - if an error occurs during the creation of the input stream

    - #### getLocalCodePage

          java.lang.String getLocalCodePage()

      Returns:
        return the local code page that should be used to store the contents in a file. Can be `null`

Copyright © 2015 Micro Focus GmbH. All rights reserved.