Class FileBody

    • Method Detail

      • getInputStream

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

        public void writeTo​(java.io.OutputStream out)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getTransferEncoding

        public java.lang.String getTransferEncoding()
        Description copied from interface: ContentDescriptor
        Returns the body descriptors transfer encoding.
        Returns:
        The transfer encoding. Must not be null, but "7bit", if no transfer-encoding was specified.
      • getContentLength

        public long getContentLength()
        Description copied from interface: ContentDescriptor
        Returns the body descriptors content-length.
        Returns:
        Content length, if known, or -1, to indicate the absence of a content-length header.
      • getFilename

        public java.lang.String getFilename()
      • getFile

        public java.io.File getFile()