public class MultiFileMemoryBuffer extends Object implements MultiFileReceiver
Constructor and Description |
---|
MultiFileMemoryBuffer() |
Modifier and Type | Method and Description |
---|---|
FileData |
getFileData(String fileName)
Get file data for upload with file name.
|
Set<String> |
getFiles()
Get the files in memory for this buffer.
|
InputStream |
getInputStream(String filename)
Get the input stream for file with filename.
|
ByteArrayOutputStream |
getOutputBuffer(String fileName)
Get the output stream for file.
|
OutputStream |
receiveUpload(String fileName,
String MIMEType)
Invoked when a new upload arrives.
|
public OutputStream receiveUpload(String fileName, String MIMEType)
Receiver
receiveUpload
in interface Receiver
fileName
- the desired filename of the upload, usually as specified by
the clientMIMEType
- the MIME type of the uploaded filepublic Set<String> getFiles()
public FileData getFileData(String fileName)
fileName
- file name to get upload data forpublic ByteArrayOutputStream getOutputBuffer(String fileName)
fileName
- name of file to get stream forpublic InputStream getInputStream(String filename)
filename
- name of file to get input stream forCopyright © 2025. All rights reserved.