Java

Data Types

  • A type specification of the form name->"type" in an APIFunction creates a Java method with the following argument types:
  • "Integer"int
    "Number"double
    "Boolean"Boolean
    "String"string
    "Date", "DateTime", "Time"date
    "Image"buffered image
    otherstring
  • This mapping can be overridden by settings for ExternalTypeSignature.
  • If no return type is specified with ExternalTypeSignature, a method returning a byte array is generated.
  • ExternalTypeSignature can specify any Java type; results from the Wolfram Engine will be converted whenever possible to the specified type.

Examples

Basic Examples  (1)

Create an embedding based on the "Java" embedding format: