com.vaadin.flow.component.upload.receivers.

Class FileData

    • Constructor Detail

      • FileData

        public FileData(String fileName,
                        String mimeType,
                        OutputStream outputBuffer)

        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 Detail

      • getMimeType

        public String getMimeType()

        Return the mimeType of this file.

        Returns:

        mime types of the files

      • getFileName

        public String getFileName()

        Return the name of this file.

        Returns:

        file name

      • getOutputBuffer

        public OutputStream getOutputBuffer()

        Return the output buffer for this file data.

        Returns:

        output buffer