SJava (version 0.98.0)

getNumJavaConverters: Returns the number of converters registered between R and Java

Description

This returns the number of converters currently registered between R and Java. The argument specifies the desired direction of the conversion, by default querying both from Java to R and from R to Java.

Usage

getNumJavaConverters(which=c(fromJava = FALSE, toJava = TRUE))

Arguments

which
a logical vector in which FALSE indicates from Java to R and TRUE indicates from R to Java.

Value

An integer vector with the same length as the argument which. The value of each element is the number of registered converters in the corresponding list.

Details

This accesses the internal C data structures that maintain the converter lists. These are in C so that the low-level JNI code can access them directly without the overhead of converting to reference objects and losing contextual information.

References

http://www.omegahat.org/RSJava

See Also

getJavaConverterDescriptions

Examples

Run this code
  getNumJavaConverters()
  getNumJavaConverters(FALSE)
  getNumJavaConverters(TRUE)

Run the code above in your browser using DataLab