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
LiteCoreException
public boolean selectCurrentRevision()
public void loadRevisionBody() throws LiteCoreException
LiteCoreException
public boolean hasRevisionBody()
public boolean selectParentRevision()
public boolean selectNextRevision()
public void selectNextLeafRevision(boolean includeDeleted, boolean withBody) throws LiteCoreException
LiteCoreException
public boolean selectFirstPossibleAncestorOf(String revID) throws LiteCoreException
LiteCoreException
public boolean selectNextPossibleAncestorOf(String revID)
public boolean selectCommonAncestorRevision(String revID1, String revID2)
public int purgeRevision(String revID) throws LiteCoreException
LiteCoreException
public void resolveConflict(String winningRevID, String losingRevID, byte[] mergeBody, int mergedFlags) throws LiteCoreException
LiteCoreException
public C4Document update(byte[] body, int flags) throws LiteCoreException
LiteCoreException
public C4Document update(FLSliceResult body, int flags) throws LiteCoreException
LiteCoreException
public boolean deleted()
public boolean accessRemoved()
public boolean conflicted()
public boolean exists()
public boolean isSelectedRevFlags(int flag)
public String bodyAsJSON(boolean canonical) throws LiteCoreException
LiteCoreException
public void retain()
public void release()