Model.ModelLocation

public static classModel.ModelLocationextendsObject

Where to load the model from.

Public Method Summary

static Model.ModelLocation
fromAssetFileDescriptor(AssetFileDescriptor assetFileDescriptor)
Loads file from a AssetFileDescriptor.
static Model.ModelLocation
fromByteBuffer(ByteBuffer byteBuffer)
Loads model fromByteBuffer.
static Model.ModelLocation
fromFile(Filefile)
Loads model fromFile.
static Model.ModelLocation
fromFileDescriptor(long fileDescriptor, long startOffset, long modelLength)
Loads file from a raw file descriptor.
static Model.ModelLocation
fromFilePath(StringfilePath)
Loads model from a file path.

Inherited Method Summary

Public Methods

public staticModel.ModelLocation fromAssetFileDescriptor(AssetFileDescriptor assetFileDescriptor)

Loads file from aAssetFileDescriptor.

public staticModel.ModelLocation fromByteBuffer(ByteBuffer byteBuffer)

Loads model fromByteBuffer.

Throws
IllegalArgumentException if byteBuffer is not of typeMappedByteBuffer or not a directByteBuffer inByteOrder.nativeOrder().

public staticModel.ModelLocation fromFile(Filefile)

Loads model fromFile.

public staticModel.ModelLocation fromFileDescriptor(long fileDescriptor, long startOffset, long modelLength)

Loads file from a raw file descriptor.

public staticModel.ModelLocation fromFilePath(StringfilePath)

Loads model from a file path.