com.webmethods.caf.jcr.faces.data
Class JcrAttachmentsProvider.JcrFileItem

java.lang.Object
  extended by com.webmethods.caf.jcr.faces.data.JcrAttachmentsProvider.JcrFileItem
Enclosing class:
JcrAttachmentsProvider

public static class JcrAttachmentsProvider.JcrFileItem
extends Object

Implementation of FileItem to wrap a JCR file node.


Field Summary
protected  JcrAttachmentsProvider.JcrAttachmentItem attachmentItem
          Reference to the attachment item
 
Constructor Summary
JcrAttachmentsProvider.JcrFileItem(JcrAttachmentsProvider.JcrAttachmentItem 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 JcrAttachmentsProvider.JcrAttachmentItem attachmentItem
Reference to the attachment item

Constructor Detail

JcrAttachmentsProvider.JcrFileItem

public JcrAttachmentsProvider.JcrFileItem(JcrAttachmentsProvider.JcrAttachmentItem 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