Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
io.github.ollama4j.utils.Utils Class Reference

Static Public Member Functions

static ObjectMapper getObjectMapper ()
 
static byte[] loadImageBytesFromUrl (String imageUrl, int connectTimeoutSeconds, int readTimeoutSeconds) throws IOException, InterruptedException
 
static File getFileFromClasspath (String fileName)
 
static String toJSON (Object object) throws JsonProcessingException
 

Detailed Description

Definition at line 25 of file Utils.java.

Member Function Documentation

◆ getFileFromClasspath()

static File io.github.ollama4j.utils.Utils.getFileFromClasspath ( String fileName)
static

Definition at line 78 of file Utils.java.

◆ getObjectMapper()

static ObjectMapper io.github.ollama4j.utils.Utils.getObjectMapper ( )
static

Definition at line 32 of file Utils.java.

◆ loadImageBytesFromUrl()

static byte[] io.github.ollama4j.utils.Utils.loadImageBytesFromUrl ( String imageUrl,
int connectTimeoutSeconds,
int readTimeoutSeconds ) throws IOException, InterruptedException
static

Definition at line 40 of file Utils.java.

◆ toJSON()

static String io.github.ollama4j.utils.Utils.toJSON ( Object object) throws JsonProcessingException
static

Definition at line 84 of file Utils.java.


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