Class Attachment

java.lang.Object
org.lightcouch.Attachment

public class Attachment extends Object
Represents an in-line document attachment.
Since:
0.0.4
See Also:
  • Field Details

    • data

      private String data
    • contentType

      @SerializedName("content_type") private String contentType
    • revpos

      private int revpos
    • digest

      private String digest
    • length

      private long length
    • stub

      private boolean stub
  • Constructor Details

    • Attachment

      public Attachment()
    • Attachment

      public Attachment(String data, String contentType)
      Parameters:
      data - The base64 encoded data of the attachment.
      contentType - The Content-Type of the attachment.
  • Method Details

    • getData

      public String getData()
      Returns:
      The base64 encoded data of the attachment.
    • getContentType

      public String getContentType()
    • getRevpos

      public int getRevpos()
    • getDigest

      public String getDigest()
    • getLength

      public long getLength()
    • isStub

      public boolean isStub()
    • setContentType

      public void setContentType(String contentType)
    • setData

      public void setData(String data)
      Parameters:
      data - The base64 encoded data of the attachment.