Class MemoryFileItem

java.lang.Object
fr.paris.lutece.util.httpaccess.MemoryFileItem
All Implemented Interfaces:
fr.paris.lutece.portal.service.upload.MultipartItem

public class MemoryFileItem extends Object implements fr.paris.lutece.portal.service.upload.MultipartItem
MemoryFileItem
  • Constructor Details

    • MemoryFileItem

      public MemoryFileItem(byte[] data, String strName, long lSize, String strContentType)
      Constructor
      Parameters:
      data - the data
      strName - the file name
      lSize - the size of the file
      strContentType - the content type of the file
  • Method Details

    • delete

      public void delete()
      Specified by:
      delete in interface fr.paris.lutece.portal.service.upload.MultipartItem
    • get

      public byte[] get()
      Specified by:
      get in interface fr.paris.lutece.portal.service.upload.MultipartItem
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface fr.paris.lutece.portal.service.upload.MultipartItem
    • getFieldName

      public String getFieldName()
      Not supported
      Specified by:
      getFieldName in interface fr.paris.lutece.portal.service.upload.MultipartItem
      Returns:
      null
    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface fr.paris.lutece.portal.service.upload.MultipartItem
      Throws:
      IOException
    • getName

      public String getName()
      Specified by:
      getName in interface fr.paris.lutece.portal.service.upload.MultipartItem
    • getSize

      public long getSize()
      Specified by:
      getSize in interface fr.paris.lutece.portal.service.upload.MultipartItem
    • getString

      public String getString()
    • getString

      public String getString(String strEncoding) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • isFormField

      public boolean isFormField()
    • isInMemory

      public boolean isInMemory()
    • setFieldName

      public void setFieldName(String strFieldName)
    • setFormField

      public void setFormField(boolean state)