Class FileContent

    • Constructor Detail

      • FileContent

        public FileContent​(java.io.File file)
      • FileContent

        public FileContent​(ContentType contentType,
                           java.io.File file)
    • Method Detail

      • compute

        @Nonnull
        protected byte[] compute()
                          throws java.io.IOException
        Specified by:
        compute in class HttpContent
        Returns:
        The content
        Throws:
        java.io.IOException - If an I/O error occurs