We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.upload.receivers.
Class AbstractFileBuffer
- java.lang.Object
-
- com.vaadin.flow.component.upload.receivers.AbstractFileBuffer
-
All Implemented Interfaces:
Direct Known Subclasses:
public abstract class AbstractFileBuffer extends Object implements Serializable
Abstract class for common file receiver buffers.
See Also:
-
-
Constructor Summary
Constructors Constructor and Description AbstractFileBuffer()
Constructor for creating a file buffer with the default file factory.
AbstractFileBuffer(FileFactory factory)
Constructor taking in the file factory used to create upload
File
.
-
Method Summary
All Methods Modifier and Type Method and Description protected FileOutputStream
createFileOutputStream(String fileName)
Create a file output stream for filename
protected Logger
getLogger()
-
-
-
Constructor Detail
-
AbstractFileBuffer
public AbstractFileBuffer()
Constructor for creating a file buffer with the default file factory.
Files will be created using
File.createTempFile(String, String)
and have that build 'upload_tmpfile_{FILENAME}_{currentTimeMillis}'
-
AbstractFileBuffer
public AbstractFileBuffer(FileFactory factory)
Constructor taking in the file factory used to create upload
File
.Parameters:
factory
- file factory for file buffer
-
-
Method Detail
-
createFileOutputStream
protected FileOutputStream createFileOutputStream(String fileName)
Create a file output stream for filename
Parameters:
fileName
-Returns:
-
getLogger
protected Logger getLogger()
-
-