Class FormDataFile

java.lang.Object
net.bjmsw.hda.vs.model.mime.FormDataFile

public class FormDataFile extends Object
Represents a file in form data.

This class is used to store files in form data. It contains the file data, name and MIME type.

  • Field Details

  • Constructor Details

    • FormDataFile

      public FormDataFile(byte[] data, String name, String fileName, String mimeType)
      Represents a file in form data.

      This class is used to store files in form data. It contains the file data, name, file name, and MIME type.

      Parameters:
      data - The file data.
      name - The name of the file.
      fileName - The name of the file.
      mimeType - The MIME type of the file.
  • Method Details

    • getData

      public byte[] getData()
      Gets the file data.
      Returns:
      The file data.
    • getMimeType

      public String getMimeType()
      Gets the MIME type of the file.
      Returns:
      The MIME type of the file.
    • getName

      public String getName()
      Gets the name of the file.
      Returns:
      The name of the file.
    • getFileName

      public String getFileName()
      Gets the name of the file.
      Returns:
      The name of the file.