类 FileContent

java.lang.Object
io.github.a2ap.core.model.FileContent
直接已知子类:
FileWithBytes, FileWithUri

public abstract class FileContent extends Object
Represents the content of a file.
  • 构造器详细资料

    • FileContent

      public FileContent()
      Default constructor.
    • FileContent

      public FileContent(String name, String mimeType)
      Constructor with name and MIME type.
      参数:
      name - the file name
      mimeType - the MIME type
  • 方法详细资料

    • getName

      public String getName()
      Gets the file name.
      返回:
      the file name
    • setName

      public void setName(String name)
      Sets the file name.
      参数:
      name - the file name to set
    • getMimeType

      public String getMimeType()
      Gets the MIME type.
      返回:
      the MIME type
    • setMimeType

      public void setMimeType(String mimeType)
      Sets the MIME type.
      参数:
      mimeType - the MIME type to set
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object