Static Public Member Functions | Static Public Attributes | List of all members
com.introlab.rtabmap.Util Class Reference

Static Public Member Functions

static String[] loadFileList (final String directory, final boolean databasesOnly)
 
static int versionCompare (String str1, String str2)
 
static void zip (String file, String zipFile) throws IOException
 
static void zip (String[] files, String zipFile) throws IOException
 

Static Public Attributes

static final int ZIP_BUFFER_SIZE = 1<<20
 

Detailed Description

Definition at line 23 of file Util.java.

Member Function Documentation

◆ loadFileList()

static String [] com.introlab.rtabmap.Util.loadFileList ( final String  directory,
final boolean  databasesOnly 
)
inlinestatic

Definition at line 62 of file Util.java.

◆ versionCompare()

static int com.introlab.rtabmap.Util.versionCompare ( String  str1,
String  str2 
)
inlinestatic

https://stackoverflow.com/questions/6701948/efficient-way-to-compare-version-strings-in-java Compares two version strings.

Use this instead of String.compareTo() for a non-lexicographical comparison that works for version strings. e.g. "1.10".compareTo("1.6").

Note
It does not work if "1.10" is supposed to be equal to "1.10.0".
Parameters
str1a string of ordinal numbers separated by decimal points.
str2a string of ordinal numbers separated by decimal points.
Returns
The result is a negative integer if str1 is numerically less than str2. The result is a positive integer if str1 is numerically greater than str2. The result is zero if the strings are numerically equal.

Definition at line 131 of file Util.java.

◆ zip() [1/2]

static void com.introlab.rtabmap.Util.zip ( String  file,
String  zipFile 
) throws IOException
inlinestatic

Definition at line 27 of file Util.java.

◆ zip() [2/2]

static void com.introlab.rtabmap.Util.zip ( String[]  files,
String  zipFile 
) throws IOException
inlinestatic

Definition at line 34 of file Util.java.

Member Data Documentation

◆ ZIP_BUFFER_SIZE

final int com.introlab.rtabmap.Util.ZIP_BUFFER_SIZE = 1<<20
static

Definition at line 25 of file Util.java.


The documentation for this class was generated from the following file:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:26