qisdk / com.aldebaran.qi.sdk.util

Package com.aldebaran.qi.sdk.util

Types

FutureLogger

A Consumer use to automatically log future error or cancel

open class FutureLogger<T : Any!> : Consumer<Future<T>!>

FutureUtils

Utility methods used for work with futures

open class FutureUtils

IOUtils

Utility methods used for work raw files and assets

class IOUtils

LanguageUtil

Language utility class.

class LanguageUtil

PhraseSetUtil

PhraseSet Utility class

open class PhraseSetUtil

RegionUtil

Region utility class.

class RegionUtil

Functions

copyToStream

Copy a StreamableBuffer to an OutputStream, chunk by chunk.

fun StreamableBuffer.copyToStream(outputStream: OutputStream, chunkSize: Long = DEFAULT_CHUNK_SIZE): Unit

Copy a StreamableBuffer to an OutputStream, chunk by chunk, asynchronously.

fun Async.copyToStream(outputStream: OutputStream, chunkSize: Long = DEFAULT_CHUNK_SIZE): Future<Void>

readAll

Read a StreamableBuffer entirely, chunk by chunk.

fun StreamableBuffer.readAll(chunkSize: Long = DEFAULT_CHUNK_SIZE): ByteBuffer
fun StreamableBuffer.readAll(chunkSize: Long = DEFAULT_CHUNK_SIZE, onReadChunkFunction: (chunkBuffer: ByteBuffer) -> Unit): Unit
fun StreamableBuffer.readAll(chunkSize: Long = DEFAULT_CHUNK_SIZE, onReadChunkConsumer: Consumer<ByteBuffer>): Unit

Read a StreamableBuffer entirely, chunk by chunk, asynchronously.

fun Async.readAll(chunkSize: Long = DEFAULT_CHUNK_SIZE): Future<ByteBuffer>
fun Async.readAll(chunkSize: Long = DEFAULT_CHUNK_SIZE, onReadChunkFunction: (chunkBuffer: ByteBuffer) -> Unit): Future<Void>
fun Async.readAll(chunkSize: Long = DEFAULT_CHUNK_SIZE, onReadChunkConsumer: Consumer<ByteBuffer>): Future<Void>