Class NativeFileSource

java.lang.Object
one.jpro.platform.file.FileSource
one.jpro.platform.file.NativeFileSource

public final class NativeFileSource extends FileSource
Java file source.
Author:
Besmir Beqiri
  • Property Details

  • Constructor Details

    • NativeFileSource

      public NativeFileSource(File file)
  • Method Details

    • getPlatformFile

      public File getPlatformFile()
      Description copied from class: FileSource
      Returns the platform-specific file object.
      Overrides:
      getPlatformFile in class FileSource
      Returns:
      the platform-specific file object
    • getProgress

      public double getProgress()
      Gets the value of the progress property.
      Specified by:
      getProgress in class FileSource
      Property description:
      Returns:
      the value of the progress property
      See Also:
    • progressProperty

      public javafx.beans.property.ReadOnlyDoubleProperty progressProperty()
      Description copied from class: FileSource
      Returns a read-only double property representing the current upload progress.
      Specified by:
      progressProperty in class FileSource
      Returns:
      the progress property
      See Also:
    • getUploadedFile

      public File getUploadedFile()
      Gets the value of the uploadedFile property.
      Specified by:
      getUploadedFile in class FileSource
      Property description:
      Returns:
      the value of the uploadedFile property
      See Also:
    • uploadedFileProperty

      public javafx.beans.property.ReadOnlyObjectProperty<File> uploadedFileProperty()
      Description copied from class: FileSource
      Returns a read-only object property representing the uploaded file.
      Specified by:
      uploadedFileProperty in class FileSource
      Returns:
      the uploadedFile property
      See Also:
    • uploadFile

      public void uploadFile()
      Description copied from class: FileSource
      Initiates the file upload process synchronously.

      This method will start the upload operation and should be called to begin the upload.

      Specified by:
      uploadFile in class FileSource
    • uploadFileAsync

      public CompletableFuture<File> uploadFileAsync()
      Description copied from class: FileSource
      Initiates the file upload process asynchronously.
      Specified by:
      uploadFileAsync in class FileSource
      Returns:
      a CompletableFuture representing the result of the asynchronous upload operation, which will complete with the uploaded File object