Class CouchbaseLiteInternal


  • public final class CouchbaseLiteInternal
    extends java.lang.Object
    Among the other things that this class attempts to abstract away, is access to the file system. On both Android, and in a Web Container, file system access is pretty problematic. Among other things, some code make the tacit assumption that there is a single root directory that contains both a scratch (temp) directory and the database directory. The scratch directory is also used, occasionally, as the home for log files.
    • Field Detail

      • SCRATCH_DIR_NAME

        public static final java.lang.String SCRATCH_DIR_NAME
        See Also:
        Constant Field Values
    • Method Detail

      • init

        public static void init​(@NonNull
                                MValue.Delegate mValueDelegate,
                                boolean debug,
                                @NonNull
                                java.io.File rootDir,
                                @NonNull
                                java.io.File scratchDir,
                                @NonNull
                                android.content.Context ctxt)
        Initialize CouchbaseLite library. This method MUST be called before using CouchbaseLite.
      • getContext

        @NonNull
        public static android.content.Context getContext()
      • debugging

        public static boolean debugging()
      • getExecutionService

        @NonNull
        public static ExecutionService getExecutionService()
      • requireInit

        public static void requireInit​(java.lang.String message)
      • getRootDir

        @NonNull
        public static java.io.File getRootDir()
      • getRootDirPath

        @NonNull
        public static java.lang.String getRootDirPath()
      • getScratchDir

        @NonNull
        public static java.io.File getScratchDir()
      • getScratchDirPath

        @NonNull
        public static java.lang.String getScratchDirPath()
      • reset

        public static void reset​(boolean state)
      • loadErrorMessages

        @NonNull
        public static java.util.Map<java.lang.String,​java.lang.String> loadErrorMessages​(@NonNull
                                                                                               android.content.Context ctxt)