Class LocalDiskFileItem

java.lang.Object
org.silverpeas.mobile.server.common.LocalDiskFileItem
All Implemented Interfaces:
Serializable, org.silverpeas.core.util.file.FileItem

public class LocalDiskFileItem extends Object implements org.silverpeas.core.util.file.FileItem, Serializable
See Also:
  • Constructor Details

    • LocalDiskFileItem

      public LocalDiskFileItem(File file, String contentType)
  • Method Details

    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface org.silverpeas.core.util.file.FileItem
      Throws:
      IOException
    • getSize

      public long getSize()
      Specified by:
      getSize in interface org.silverpeas.core.util.file.FileItem
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface org.silverpeas.core.util.file.FileItem
    • saveTo

      public void saveTo(File file) throws IOException
      Specified by:
      saveTo in interface org.silverpeas.core.util.file.FileItem
      Throws:
      IOException
    • delete

      public void delete() throws IOException
      Specified by:
      delete in interface org.silverpeas.core.util.file.FileItem
      Throws:
      IOException
    • isFormField

      public boolean isFormField()
      Specified by:
      isFormField in interface org.silverpeas.core.util.file.FileItem
    • getFieldName

      public String getFieldName()
      Specified by:
      getFieldName in interface org.silverpeas.core.util.file.FileItem
    • getContent

      public String getContent(Charset charset)
      Specified by:
      getContent in interface org.silverpeas.core.util.file.FileItem
    • getContent

      public String getContent()
      Specified by:
      getContent in interface org.silverpeas.core.util.file.FileItem
    • getFileName

      public String getFileName()
      Specified by:
      getFileName in interface org.silverpeas.core.util.file.FileItem