Package io.milton.http
Interface FileItem
-
public interface FileItemRepresents an item which has been uploaded in a form POST
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContentType()StringgetFieldName()The name of the field which declared the file controlInputStreamgetInputStream()To read the uploaded fileStringgetName()The name of the uploaded fileOutputStreamgetOutputStream()To allow writing to the uploaded file.longgetSize()The size of the uploaded file
-
-
-
Method Detail
-
getContentType
String getContentType()
-
getFieldName
String getFieldName()
The name of the field which declared the file control- Returns:
-
getInputStream
InputStream getInputStream()
To read the uploaded file- Returns:
-
getName
String getName()
The name of the uploaded file- Returns:
-
getSize
long getSize()
The size of the uploaded file- Returns:
-
getOutputStream
OutputStream getOutputStream()
To allow writing to the uploaded file. Not always supported- Returns:
-
-