Class TempAttachmentsProvider.TempThingFileItem

java.lang.Object
com.webmethods.caf.faces.data.attachments.TempAttachmentsProvider.TempThingFileItem
All Implemented Interfaces:
org.apache.commons.fileupload.FileItem, org.apache.commons.fileupload.FileItemHeadersSupport
Enclosing class:
TempAttachmentsProvider

public static class TempAttachmentsProvider.TempThingFileItem extends Object implements org.apache.commons.fileupload.FileItem
Simple implementation of FileItem to wrap the temporary files.
  • Field Details

  • Constructor Details

    • TempThingFileItem

      public TempThingFileItem(IAttachmentItem attachmentItem)
      Constructor
      Parameters:
      attachmentItem - the attachment item
  • Method Details

    • delete

      public void delete()
      Specified by:
      delete in interface org.apache.commons.fileupload.FileItem
    • get

      public byte[] get()
      Specified by:
      get in interface org.apache.commons.fileupload.FileItem
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface org.apache.commons.fileupload.FileItem
    • getFieldName

      public String getFieldName()
      Specified by:
      getFieldName in interface org.apache.commons.fileupload.FileItem
    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface org.apache.commons.fileupload.FileItem
      Throws:
      IOException
    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.commons.fileupload.FileItem
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Specified by:
      getOutputStream in interface org.apache.commons.fileupload.FileItem
      Throws:
      IOException
    • getSize

      public long getSize()
      Specified by:
      getSize in interface org.apache.commons.fileupload.FileItem
    • getString

      public String getString()
      Specified by:
      getString in interface org.apache.commons.fileupload.FileItem
    • getString

      public String getString(String characterEncoding) throws UnsupportedEncodingException
      Specified by:
      getString in interface org.apache.commons.fileupload.FileItem
      Throws:
      UnsupportedEncodingException
    • isFormField

      public boolean isFormField()
      Specified by:
      isFormField in interface org.apache.commons.fileupload.FileItem
    • isInMemory

      public boolean isInMemory()
      Specified by:
      isInMemory in interface org.apache.commons.fileupload.FileItem
    • setFieldName

      public void setFieldName(String arg0)
      Specified by:
      setFieldName in interface org.apache.commons.fileupload.FileItem
    • setFormField

      public void setFormField(boolean arg0)
      Specified by:
      setFormField in interface org.apache.commons.fileupload.FileItem
    • write

      public void write(File arg0) throws Exception
      Specified by:
      write in interface org.apache.commons.fileupload.FileItem
      Throws:
      Exception
    • getHeaders

      public org.apache.commons.fileupload.FileItemHeaders getHeaders()
      Not Implemented. Throws UnsupportedOperationException if called.
      Specified by:
      getHeaders in interface org.apache.commons.fileupload.FileItemHeadersSupport
    • setHeaders

      public void setHeaders(org.apache.commons.fileupload.FileItemHeaders headers)
      Not Implemented. Throws UnsupportedOperationException if called.
      Specified by:
      setHeaders in interface org.apache.commons.fileupload.FileItemHeadersSupport