Rename FileExtension to FileType

This commit is contained in:
Andrea Cavalli 2020-09-24 11:53:35 +02:00
parent c0fd317fcb
commit 463b0ccf35
2 changed files with 4 additions and 4 deletions

View File

@ -39,19 +39,19 @@ public interface FileSource {
/**
* Called when the mirror notifies you that a new file exists
*/
boolean onNewFile(@NotNull FileURI fileURI, @NotNull FileExtension fileExtension);
boolean onNewFile(@NotNull FileURI fileURI, @NotNull FileType fileType);
/**
* Called when the mirror notifies you details about a file.
* <p>
* {@link this#onNewFile(FileURI, FileExtension)} must have been already called
* {@link this#onNewFile(FileURI, FileType)} 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.
* <p>
* {@link this#onNewFile(FileURI, FileExtension)} and {@link this#onFile(FileURI, FileSourceAvailability, long)} must
* {@link this#onNewFile(FileURI, FileType)} and {@link this#onFile(FileURI, FileSourceAvailability, long)} must
* have been already called
*/
void onFilePiece(@NotNull FileURI fileURI, long offset, long size, @NotNull ByteBuffer piece);

View File

@ -18,4 +18,4 @@
package org.warp.filesponge.api;
public interface FileExtension {}
public interface FileType {}