StorageDomain.TextFile


public final class StorageDomain.TextFile extends StorageDomain


Targets local raw text files stored within internal app storage.

Summary

Public constructors

TextFile(@NonNull String path, @NonNull String content)

Public methods

boolean
equals(Object other)
final @NonNull String

The string content of the file.

final @NonNull String

The path of the file, relative to the app's files directory (Context.getFilesDir()), such as "my_data.txt".

int
@NonNull String

Public constructors

TextFile

Added in 1.0.0-alpha03
public TextFile(@NonNull String path, @NonNull String content)

Public methods

equals

public boolean equals(Object other)

getContent

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

The string 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_data.txt". An absolute path is used as is.

hashCode

public int hashCode()

toString

public @NonNull String toString()