public class FileData extends Object implements Serializable
Constructor and Description |
---|
FileData(String fileName,
String mimeType,
OutputStream outputBuffer)
Create a FileData instance for a file.
|
Modifier and Type | Method and Description |
---|---|
File |
getFile() |
String |
getFileName()
Return the name of this file.
|
String |
getMimeType()
Return the mimeType of this file.
|
OutputStream |
getOutputBuffer()
Return the output buffer for this file data.
|
public FileData(String fileName, String mimeType, OutputStream outputBuffer)
fileName
- the file namemimeType
- the file MIME typeoutputBuffer
- the output buffer where to write the filepublic String getMimeType()
public String getFileName()
public OutputStream getOutputBuffer()
public File getFile()
NullPointerException
- if outputBuffer is nullUnsupportedOperationException
- if outputBuffer is not an UploadOutputStream
Copyright © 2025. All rights reserved.