ccc.plugins.multipart
Interface MultipartFormData

All Known Implementing Classes:
MultipartForm

public interface MultipartFormData

API for accessing multipart form data.

Author:
Civic Computing Ltd.

Method Summary
 java.lang.String getContentType(java.lang.String key)
          Get the content type for a form item.
 java.io.InputStream getInputStream(java.lang.String key)
          Retrieve an input stream for a form item.
 long getSize(java.lang.String key)
          Get the size in bytes of a form item.
 java.lang.String getString(java.lang.String key)
          Get the string representation of a form item.
 

Method Detail

getInputStream

java.io.InputStream getInputStream(java.lang.String key)
                                   throws java.io.IOException
Retrieve an input stream for a form item.

Parameters:
key - The key to the item.
Returns:
An input stream to read the item.
Throws:
java.io.IOException - If a stream cannot be opened.

getContentType

java.lang.String getContentType(java.lang.String key)
Get the content type for a form item.

Parameters:
key - The key to the item.
Returns:
The content type as a string.

getSize

long getSize(java.lang.String key)
Get the size in bytes of a form item.

Parameters:
key - The key to the item.
Returns:
The size, as a long.

getString

java.lang.String getString(java.lang.String key)
Get the string representation of a form item.

Parameters:
key - The key to the item.
Returns:
The item value, as a string.


Copyright © 2010. All Rights Reserved.