Class DataLogJNI
java.lang.Object
org.wpilib.datalog.DataLogJNI
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSets whether JNI should be loaded in the static block. -
Method Summary
Modifier and TypeMethodDescriptionstatic longcreateFileLogger(String file, long log, String key) Create a native FileLogger.static voidForce load the library.static voidfreeFileLogger(long fileTail) Free a native FileLogger.
-
Method Details
-
forceLoad
Force load the library.- Throws:
IOException- if the library failed to load
-
createFileLogger
Create a native FileLogger. When the specified file is modified, appended data will be appended to the specified data log.- Parameters:
file- path to the filelog- data log implementation handlekey- log key to append data to- Returns:
- The FileLogger handle.
-
freeFileLogger
Free a native FileLogger. This causes the FileLogger to stop appending data to the log.- Parameters:
fileTail- The FileLogger handle.
-