com.webmethods.caf.faces.data.attachments
Class TempAttachmentsProvider.TempThingFileItem

java.lang.Object
  extended by com.webmethods.caf.faces.data.attachments.TempAttachmentsProvider.TempThingFileItem
Enclosing class:
TempAttachmentsProvider

public static class TempAttachmentsProvider.TempThingFileItem
extends Object

Simple implementation of FileItem to wrap the temporary files.


Field Summary
protected  IAttachmentItem attachmentItem
           
 
Constructor Summary
TempAttachmentsProvider.TempThingFileItem(IAttachmentItem attachmentItem)
          Constructor
 
Method Summary
 void delete()
           
 byte[] get()
           
 String getContentType()
           
 String getFieldName()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 long getSize()
           
 String getString()
           
 String getString(String characterEncoding)
           
 boolean isFormField()
           
 boolean isInMemory()
           
 void setFieldName(String arg0)
           
 void setFormField(boolean arg0)
           
 void write(File arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attachmentItem

protected IAttachmentItem attachmentItem
Constructor Detail

TempAttachmentsProvider.TempThingFileItem

public TempAttachmentsProvider.TempThingFileItem(IAttachmentItem attachmentItem)
Constructor

Parameters:
attachmentItem - the attachment item
Method Detail

delete

public void delete()

get

public byte[] get()

getContentType

public String getContentType()

getFieldName

public String getFieldName()

getInputStream

public InputStream getInputStream()
                           throws IOException
Throws:
IOException

getName

public String getName()

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Throws:
IOException

getSize

public long getSize()

getString

public String getString()

getString

public String getString(String characterEncoding)
                 throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

isFormField

public boolean isFormField()

isInMemory

public boolean isInMemory()

setFieldName

public void setFieldName(String arg0)

setFormField

public void setFormField(boolean arg0)

write

public void write(File arg0)
           throws Exception
Throws:
Exception