Class Attachment

java.lang.Object
org.lightcouch.Attachment

public class Attachment extends Object
Represents an in-line document attachment.
Since:
0.0.4
Author:
Ahmed Yehia
See Also:
  • 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.