Class AbstractFileBuffer
- java.lang.Object
-
- com.vaadin.flow.component.upload.receivers.AbstractFileBuffer
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FileBuffer,MultiFileBuffer
public abstract class AbstractFileBuffer extends Object implements Serializable
Abstract class for common file receiver buffers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractFileBuffer()Constructor for creating a file buffer with the default temporary file factory.AbstractFileBuffer(FileFactory factory)Constructor taking in the file factory used to create uploadFile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FileOutputStreamcreateFileOutputStream(String fileName)Create a file output stream for the file.protected LoggergetLogger()
-
-
-
Constructor Detail
-
AbstractFileBuffer
public AbstractFileBuffer()
Constructor for creating a file buffer with the default temporary file factory.
-
AbstractFileBuffer
public AbstractFileBuffer(FileFactory factory)
Constructor taking in the file factory used to create uploadFile.- Parameters:
factory- file factory for file buffer
-
-
Method Detail
-
createFileOutputStream
protected FileOutputStream createFileOutputStream(String fileName)
Create a file output stream for the file.- Parameters:
fileName- the name of the file- Returns:
- the file output stream
-
getLogger
protected Logger getLogger()
-
-