Update documentation

This commit is contained in:
Andrea Cavalli 2021-01-10 23:28:41 +01:00
parent 4b72294426
commit 6af215a2c9

View File

@ -47,14 +47,14 @@ public interface FileSource<FURI extends FileURI, FTYPE extends FileType> {
/**
* Called when the mirror notifies you details about a file.
* <p>
* {@link this#onNewFile(FileURI, FileType)} must have been already called
* {@link FileSource#onNewFile(FURI, FTYPE)} must have been already called
*/
void onFile(@NotNull FURI fileURI, @NotNull FileSourceAvailability fileAvailability, long totalSize);
/**
* Called when the mirror notifies you the bytes of a part of a file.
* <p>
* {@link this#onNewFile(FileURI, FileType)} and {@link this#onFile(FileURI, FileSourceAvailability, long)} must
* {@link FileSource#onNewFile(FURI, FTYPE)} and {@link FileSource#onFile(FURI, FileSourceAvailability, long)} must
* have been already called
*/
void onFilePiece(@NotNull FURI fileURI, long offset, long size, @NotNull ByteBuffer piece);