Package com.pdfgate
Class FileParam
java.lang.Object
com.pdfgate.FileParam
Represents a binary file payload for multipart PDF uploads.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileParam
Creates a file payload with the default content type.- Parameters:
name- file name.data- file bytes.
-
FileParam
Creates a file payload with an explicit content type.- Parameters:
name- file name.data- file bytes.type- content type, ornullto let the client infer it.
-
-
Method Details
-
getName
Returns the filename.- Returns:
- the filename.
-
getData
public byte[] getData()Returns the file bytes.- Returns:
- the file bytes.
-
getType
Returns the content type override, if provided.- Returns:
- the content type override, if provided.
-
equals
-
hashCode
public int hashCode()
-