java.lang.Object
org.qubership.atp.itf.lite.backend.model.entities.gridfs.FileData
All Implemented Interfaces:
Serializable, org.springframework.core.io.InputStreamSource, org.springframework.web.multipart.MultipartFile

public class FileData extends Object implements org.springframework.web.multipart.MultipartFile, Serializable
See Also:
  • Constructor Details

    • FileData

      public FileData(byte[] content, String fileName)
    • FileData

      public FileData(byte[] content, String fileName, String contentType)
      Constructor FileData.
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.springframework.web.multipart.MultipartFile
    • getOriginalFilename

      public String getOriginalFilename()
      Specified by:
      getOriginalFilename in interface org.springframework.web.multipart.MultipartFile
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.springframework.web.multipart.MultipartFile
    • getSize

      public long getSize()
      Specified by:
      getSize in interface org.springframework.web.multipart.MultipartFile
    • getBytes

      public byte[] getBytes() throws IOException
      Specified by:
      getBytes in interface org.springframework.web.multipart.MultipartFile
      Throws:
      IOException
    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface org.springframework.core.io.InputStreamSource
      Specified by:
      getInputStream in interface org.springframework.web.multipart.MultipartFile
      Throws:
      IOException
    • transferTo

      public void transferTo(@NotNull File dest) throws IOException, IllegalStateException
      Specified by:
      transferTo in interface org.springframework.web.multipart.MultipartFile
      Throws:
      IOException
      IllegalStateException