Class TemporaryFileMultipartItem

java.lang.Object
fr.paris.lutece.portal.service.upload.TemporaryFileMultipartItem
All Implemented Interfaces:
fr.paris.lutece.portal.service.upload.MultipartItem, Serializable

public class TemporaryFileMultipartItem extends Object implements fr.paris.lutece.portal.service.upload.MultipartItem, Serializable
See Also:
  • Constructor Details

    • TemporaryFileMultipartItem

      public TemporaryFileMultipartItem(File file, String strSubmittedFileName, String strContentType, String strFieldName)
  • Method Details

    • getName

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

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

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

      public void delete() throws IOException
      Specified by:
      delete in interface fr.paris.lutece.portal.service.upload.MultipartItem
      Throws:
      IOException
    • getFieldName

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

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

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