Package org.lightcouch
Class Attachment
java.lang.Object
org.lightcouch.Attachment
Represents an in-line document attachment.
- Since:
- 0.0.4
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
data
-
contentType
-
revpos
private int revpos -
digest
-
length
private long length -
stub
private boolean stub
-
-
Constructor Details
-
Attachment
public Attachment() -
Attachment
- Parameters:
data
- The base64 encoded data of the attachment.contentType
- The Content-Type of the attachment.
-
-
Method Details
-
getData
- Returns:
- The base64 encoded data of the attachment.
-
getContentType
-
getRevpos
public int getRevpos() -
getDigest
-
getLength
public long getLength() -
isStub
public boolean isStub() -
setContentType
-
setData
- Parameters:
data
- The base64 encoded data of the attachment.
-