public InputStream getInputStream() throws IOException
{
if (_file != null)
{
// Automatically close and delete the temp file when end of input has been reached (MULE-6732).
return new BufferedInputStream(new AutoCloseInputStream(new DeleteOnCloseFileInputStream(_file)));
}
else
{
//part content is in a ByteArrayOutputStream
return new ByteArrayInputStream(((ByteArrayOutputStream)_out).toByteArray());