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 path of the file, relative to the app's files directory (Context.getFilesDir()), such as "my_image.png".

int
@NonNull String

Public constructors

BinaryFile

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

Public methods

equals

public boolean equals(Object other)

getContent

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

The raw byte array content of the file.

getPath

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

The path of the file, relative to the app's files directory (Context.getFilesDir()), such as "my_image.png". An absolute path is used as is.

hashCode

public int hashCode()

toString

public @NonNull String toString()