com.bradmcevoy.http
Interface FileItem


public interface FileItem

Represents an item which has been uploaded in a form POST

Author:
brad

Method Summary
 java.lang.String getContentType()
           
 java.lang.String getFieldName()
          The name of the field which declared the file control
 java.io.InputStream getInputStream()
          To read the uploaded file
 java.lang.String getName()
          The name of the uploaded file
 java.io.OutputStream getOutputStream()
          To allow writing to the uploaded file.
 long getSize()
          The size of the uploaded file
 

Method Detail

getContentType

java.lang.String getContentType()

getFieldName

java.lang.String getFieldName()
The name of the field which declared the file control

Returns:

getInputStream

java.io.InputStream getInputStream()
To read the uploaded file

Returns:

getName

java.lang.String getName()
The name of the uploaded file

Returns:

getSize

long getSize()
The size of the uploaded file

Returns:

getOutputStream

java.io.OutputStream getOutputStream()
To allow writing to the uploaded file. Not always supported

Returns:


Copyright © 2011. All Rights Reserved.