com.versionone.apiclient.interfaces

## Interface IAttachments

- All Known Implementing Classes:
    Attachments

  Deprecated.
  This interface has been deprecated. Please use methods of the IServices interface instead.

      @Deprecated
      public interface IAttachments

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | `getReader(String key)` Deprecated. Getting reader
    `OutputStream` | `getWriter(String key, String contentType)` Deprecated. Getting writer
    `void` | `setWriter(String key)` Deprecated. Setting Writer

- - ### Method Detail

    - #### getReader

          InputStream getReader(String key)
                         throws ConnectionException

      Deprecated.
      Getting reader
      Parameters:
        `key` - path to the data on server
      Returns:
        the stream for reading data
      Throws:
        `ConnectionException` - if any connection problems occur

    - #### getWriter

          OutputStream getWriter(String key,
                                 String contentType)
                          throws ConnectionException

      Deprecated.
      Getting writer
      Parameters:
        `key` - path to the data on server
        `contentType` - Content-type of HTTP header
      Returns:
        the stream for writing data
      Throws:
        `ConnectionException` - if any connection problems occur

    - #### setWriter

          void setWriter(String key)
                  throws ConnectionException,
                         AttachmentLengthException

      Deprecated.
      Setting Writer
      Parameters:
        `key` - path to the data on server
      Throws:
        `ConnectionException` - if any problem appears with connection to server
        `AttachmentLengthException` - attachment too big

Copyright © 2016 VersionOne, Inc.. All rights reserved.