public class AttachmentInternal
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AttachmentInternal.AttachmentEncoding |
| Constructor and Description |
|---|
AttachmentInternal(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attachInfo)
- (instancetype) initWithName: (NSString*)name
info: (NSDictionary*)attachInfo
status: (CBLStatus*)outStatus
|
AttachmentInternal(java.lang.String name,
java.lang.String contentType)
- (instancetype) initWithName: (NSString*)name contentType: (NSString*)contentType
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
asStubDictionary() |
BlobKey |
getBlobKey() |
byte[] |
getContent() |
java.io.InputStream |
getContentInputStream() |
java.lang.String |
getContentType() |
java.net.URL |
getContentURL() |
Database |
getDatabase() |
java.lang.String |
getDigest() |
byte[] |
getEncodedContent() |
java.io.InputStream |
getEncodedContentInputStream() |
long |
getEncodedLength() |
AttachmentInternal.AttachmentEncoding |
getEncoding() |
int |
getLength() |
java.lang.String |
getName() |
int |
getRevpos() |
boolean |
hasBlobKey() |
boolean |
isValid() |
void |
setBlobKey(BlobKey blobKey) |
void |
setDatabase(Database database) |
void |
setEncodedLength(int encodedLength) |
void |
setEncoding(AttachmentInternal.AttachmentEncoding encoding) |
void |
setLength(int length) |
void |
setPossiblyEncodedLength(int len)
Sets encodedLength if there is an encoding, else length.
|
void |
setRevpos(int revpos) |
public AttachmentInternal(java.lang.String name,
java.lang.String contentType)
public AttachmentInternal(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attachInfo)
throws CouchbaseLiteException
CouchbaseLiteExceptionpublic boolean hasBlobKey()
public java.lang.String getDigest()
public boolean isValid()
public java.util.Map<java.lang.String,java.lang.Object> asStubDictionary()
public byte[] getEncodedContent()
public byte[] getContent()
public java.io.InputStream getContentInputStream()
public java.io.InputStream getEncodedContentInputStream()
public java.net.URL getContentURL()
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic java.lang.String getName()
public java.lang.String getContentType()
public AttachmentInternal.AttachmentEncoding getEncoding()
public void setEncoding(AttachmentInternal.AttachmentEncoding encoding)
public BlobKey getBlobKey()
public void setBlobKey(BlobKey blobKey)
public int getLength()
public void setLength(int length)
public long getEncodedLength()
public void setEncodedLength(int encodedLength)
public int getRevpos()
public void setRevpos(int revpos)
public Database getDatabase()
public void setDatabase(Database database)
public void setPossiblyEncodedLength(int len)