Interface Uploadable<T>

    • Method Detail

      • getContent

        T getContent()
        Returns the original content.
      • getBytes

        byte[] getBytes()
        Returns content bytes.
      • getFileName

        java.lang.String getFileName()
        Returns content file name. If null, the field's name will be used.
      • getMimeType

        java.lang.String getMimeType()
        Returns MIME type. If null, MIME type will be determined from file name's extension.
      • getSize

        int getSize()
        Returns size in bytes.
      • openInputStream

        java.io.InputStream openInputStream()
                                     throws java.io.IOException
        Opens InputStream. User is responsible for closing it.
        Throws:
        java.io.IOException