com.webmethods.caf.faces.data.attachments
Class PortalAttachmentItem.PortalContentFileItem

java.lang.Object
  extended by com.webmethods.caf.faces.data.attachments.PortalAttachmentItem.PortalContentFileItem
Enclosing class:
PortalAttachmentItem

protected static class PortalAttachmentItem.PortalContentFileItem
extends Object

Implementation of FileItem from a file stored in MWS


Constructor Summary
PortalAttachmentItem.PortalContentFileItem(PortalAttachmentItem attachmentItem)
           
 
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 name)
           
 void setFormField(boolean field)
           
 void write(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalAttachmentItem.PortalContentFileItem

public PortalAttachmentItem.PortalContentFileItem(PortalAttachmentItem attachmentItem)
                                           throws Exception
Throws:
Exception
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 name)

setFormField

public void setFormField(boolean field)

write

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