getChunk

Returns a ChannelBuffer for the content from the current position with at
most length read bytes, increasing the current position of the Bytes
read. Once it arrives at the end, it returns an EMPTY_BUFFER and it
resets the current position to 0.

Returns:

a ChannelBuffer for the content from the current position or an
EMPTY_BUFFER if there is no more data to return

Throws:

java.io.IOException

getString

java.lang.String getString()
throws java.io.IOException

Returns the contents of the file item as a String, using the default
character encoding.

Returns:

the contents of the file item as a String, using the default
character encoding.

getString

Returns the contents of the file item as a String, using the specified
charset.

Parameters:

encoding - the charset to use

Returns:

the contents of the file item as a String, using the specified
charset.

Throws:

java.io.IOException

setCharset

void setCharset(java.nio.charset.Charset charset)

Set the Charset passed by the browser if defined

Parameters:

charset - Charset to set - must be not null

getCharset

java.nio.charset.Charset getCharset()

Returns the Charset passed by the browser or null if not defined.

Returns:

the Charset passed by the browser or null if not defined.

renameTo

boolean renameTo(java.io.File dest)
throws java.io.IOException

A convenience getMethod to write an uploaded item to disk. If a previous one
exists, it will be deleted. Once this getMethod is called, if successful,
the new file will be out of the cleaner of the factory that creates the
original InterfaceHttpData object.

Parameters:

dest - destination file - must be not null

Returns:

True if the write is successful

Throws:

java.io.IOException

isInMemory

boolean isInMemory()

Provides a hint as to whether or not the file contents will be read from
memory.