com.vaadin.flow.component.upload.receivers.
java.lang.Object
com.vaadin.flow.component.upload.receivers.FileData

All Implemented Interfaces:

Serializable

@Deprecated(since="24.8", forRemoval=true) public class FileData extends Object implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.

Class containing file information for upload.

See Also:

  • Constructor Summary

    Constructors
    Constructor
    Description
    FileData(String fileName, String mimeType, OutputStream outputBuffer)

    Deprecated, for removal: This API element is subject to removal in a future version.

    Create a FileData instance for a file.

  • Method Summary

    Modifier and Type
    Method
    Description

    Deprecated, for removal: This API element is subject to removal in a future version.

     

    Deprecated, for removal: This API element is subject to removal in a future version.

    Return the name of this file.

    Deprecated, for removal: This API element is subject to removal in a future version.

    Return the mimeType of this file.

    Deprecated, for removal: This API element is subject to removal in a future version.

    Return the output buffer for this file data.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FileData

      public FileData(String fileName, String mimeType, OutputStream outputBuffer)
      Deprecated, for removal: This API element is subject to removal in a future version.

      Create a FileData instance for a file.

      Parameters:

      fileName - the file name

      mimeType - the file MIME type

      outputBuffer - the output buffer where to write the file

  • Method Details

    • getMimeType

      public String getMimeType()
      Deprecated, for removal: This API element is subject to removal in a future version.

      Return the mimeType of this file.

      Returns:

      mime types of the files

    • getFileName

      public String getFileName()
      Deprecated, for removal: This API element is subject to removal in a future version.

      Return the name of this file.

      Returns:

      file name

    • getOutputBuffer

      public OutputStream getOutputBuffer()
      Deprecated, for removal: This API element is subject to removal in a future version.

      Return the output buffer for this file data.

      Returns:

      output buffer

    • getFile

      public File getFile()
      Deprecated, for removal: This API element is subject to removal in a future version.

      Returns:

      Temporary file containing the uploaded data.

      Throws:

      NullPointerException - if outputBuffer is null

      UnsupportedOperationException - if outputBuffer is not an UploadOutputStream