Class FormData.FileItem

  • Enclosing class:
    FormData

    public static class FormData.FileItem
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FileItem​(byte[] content)  
      FileItem​(java.nio.file.Path file)  
    • Constructor Detail

      • FileItem

        public FileItem​(java.nio.file.Path file)
      • FileItem

        public FileItem​(byte[] content)
    • Method Detail

      • isInMemory

        public boolean isInMemory()
      • getFile

        public java.nio.file.Path getFile()
      • getFileSize

        public long getFileSize()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • delete

        public void delete()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public void write​(java.nio.file.Path target)
                   throws java.io.IOException
        Throws:
        java.io.IOException