public class C4Document extends Object
public static boolean dictContainsBlobs(FLSliceResult dict, FLSharedKeys sk)
public int getFlags()
public String getDocID()
public String getRevID()
public long getSequence()
public String getSelectedRevID()
public int getSelectedFlags()
public long getSelectedSequence()
public byte[] getSelectedBody()
public FLDict getSelectedBody2()
public void save(int maxRevTreeDepth)
throws LiteCoreException
LiteCoreExceptionpublic boolean selectCurrentRevision()
public void loadRevisionBody()
throws LiteCoreException
LiteCoreExceptionpublic boolean hasRevisionBody()
public boolean selectParentRevision()
public boolean selectNextRevision()
public void selectNextLeafRevision(boolean includeDeleted,
boolean withBody)
throws LiteCoreException
LiteCoreExceptionpublic boolean selectFirstPossibleAncestorOf(String revID) throws LiteCoreException
LiteCoreExceptionpublic boolean selectNextPossibleAncestorOf(String revID)
public boolean selectCommonAncestorRevision(String revID1, String revID2)
public int purgeRevision(String revID) throws LiteCoreException
LiteCoreExceptionpublic void resolveConflict(String winningRevID, String losingRevID, byte[] mergeBody, int mergedFlags) throws LiteCoreException
LiteCoreExceptionpublic C4Document update(byte[] body, int flags) throws LiteCoreException
LiteCoreExceptionpublic C4Document update(FLSliceResult body, int flags) throws LiteCoreException
LiteCoreExceptionpublic boolean deleted()
public boolean accessRemoved()
public boolean conflicted()
public boolean exists()
public boolean isSelectedRevFlags(int flag)
public String bodyAsJSON(boolean canonical) throws LiteCoreException
LiteCoreExceptionpublic void retain()
public void release()