Class AbstractFileBuffer

java.lang.Object
com.vaadin.flow.component.upload.receivers.AbstractFileBuffer
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FileBuffer, MultiFileBuffer

@Deprecated(since="24.8", forRemoval=true) public abstract class AbstractFileBuffer extends Object implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
Use UploadHandler instead
Abstract class for common file receiver buffers.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor for creating a file buffer with the default temporary file factory.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor taking in the file factory used to create upload File.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a file output stream for the file.
    protected Logger
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

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

    • AbstractFileBuffer

      public AbstractFileBuffer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor for creating a file buffer with the default temporary file factory.
    • AbstractFileBuffer

      public AbstractFileBuffer(FileFactory factory)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor taking in the file factory used to create upload File.
      Parameters:
      factory - file factory for file buffer
  • Method Details

    • createFileOutputStream

      protected FileOutputStream createFileOutputStream(String fileName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a file output stream for the file.
      Parameters:
      fileName - the name of the file
      Returns:
      the file output stream
    • getLogger

      protected Logger getLogger()
      Deprecated, for removal: This API element is subject to removal in a future version.