+ * {@link this#onNewFile(FileURI, FileExtension)} must have been already called */ void onFile(@NotNull FileURI fileURI, @NotNull FileSourceAvailability fileAvailability, long totalSize); /** - * Called when the mirror notifies you the bytes of a part of a file + * Called when the mirror notifies you the bytes of a part of a file. + *
+ * {@link this#onNewFile(FileURI, FileExtension)} and {@link this#onFile(FileURI, FileSourceAvailability, long)} must + * have been already called */ void onFilePiece(@NotNull FileURI fileURI, long offset, long size, @NotNull ByteBuffer piece); } diff --git a/src/main/lombok/org/warp/filesponge/api/FileSpongeClient.java b/src/main/lombok/org/warp/filesponge/api/FileSpongeClient.java index adc4f07..0bad767 100644 --- a/src/main/lombok/org/warp/filesponge/api/FileSpongeClient.java +++ b/src/main/lombok/org/warp/filesponge/api/FileSpongeClient.java @@ -29,6 +29,7 @@ public interface FileSpongeClient extends FileAccessor { /** * Get this instance but without special methods + * * @return limited instance of itself */ default FileAccessor asFileAccessor() {