public class FileBuffer extends AbstractFileBuffer implements Receiver
File.createTempFile(String, String) with a null
suffix.
For a custom file the constructor AbstractFileBuffer(FileFactory)
should be used.
| Constructor and Description |
|---|
FileBuffer() |
| Modifier and Type | Method and Description |
|---|---|
FileData |
getFileData()
Get the file data object.
|
FileDescriptor |
getFileDescriptor()
Get the output stream for file.
|
String |
getFileName()
Get the file name for this buffer.
|
InputStream |
getInputStream()
Get the input stream for file.
|
OutputStream |
receiveUpload(String fileName,
String MIMEType)
Invoked when a new upload arrives.
|
createFileOutputStream, getLoggerpublic OutputStream receiveUpload(String fileName, String MIMEType)
ReceiverreceiveUpload in interface ReceiverfileName - the desired filename of the upload, usually as specified by
the clientMIMEType - the MIME type of the uploaded filepublic FileData getFileData()
public String getFileName()
public FileDescriptor getFileDescriptor()
public InputStream getInputStream()
Copyright © 2025. All rights reserved.