public class FileItem extends Object
| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
m_inputStream
Stream from which body can be read
|
protected String |
m_name
file name.
|
protected String |
m_type
file type.
|
protected static int |
STREAM_BUFFER_SIZE
The chunk size used when streaming (100k).
|
| Constructor and Description |
|---|
FileItem(String fileName,
String fileType)
Construct
|
FileItem(String fileName,
String fileType,
InputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
String |
getFileName() |
InputStream |
getInputStream() |
protected static final int STREAM_BUFFER_SIZE
protected String m_name
protected String m_type
protected InputStream m_inputStream
public FileItem(String fileName, String fileType)
fileName - The file name.fileType - The file type.public FileItem(String fileName, String fileType, InputStream stream)
public String getFileName()
public String getContentType()
public InputStream getInputStream()
Copyright © 2003–2021 Sakai Project. All rights reserved.