StorageDomain.BinaryFile


public final class StorageDomain.BinaryFile extends StorageDomain


Targets local raw binary files stored within internal app storage.

Summary

Public constructors

BinaryFile(@NonNull String path, @NonNull byte[] content)

Public methods

boolean
equals(Object other)
final @NonNull byte[]

The raw byte array content of the file.

final @NonNull String

The relative path of the file inside the app sandbox (e.g. "files/my_image.png").

int
@NonNull String

Public constructors

BinaryFile

Added in 1.0.0-alpha01
public BinaryFile(@NonNull String path, @NonNull byte[] content)

Public methods

equals

public boolean equals(Object other)

getContent

Added in 1.0.0-alpha01
public final @NonNull byte[] getContent()

The raw byte array content of the file.

getPath

Added in 1.0.0-alpha01
public final @NonNull String getPath()

The relative path of the file inside the app sandbox (e.g. "files/my_image.png").

hashCode

public int hashCode()

toString

public @NonNull String toString()