Class FileData

All Implemented Interfaces:
Serializable, Title

public class FileData extends IdTitle
DB table entity with file metadata: ID, title, upload time. Files themselves are persisted in filestorage directory.
See Also:
  • Constructor Details

    • FileData

      public FileData()
    • FileData

      public FileData(int id, String title, String secret)
    • FileData

      public FileData(String title, byte[] data)
  • Method Details

    • getSecret

      public String getSecret()
    • setSecret

      public void setSecret(String key)
    • getTime

      public Date getTime()
    • setTime

      public void setTime(Date time)
    • serialize

      public static String serialize(List<FileData> fileList)
    • parse

      public static List<FileData> parse(String str)
    • getData

      public byte[] getData()
    • setData

      public void setData(byte[] data)
    • getUser

      @Deprecated public User getUser()
      Deprecated.
    • setUser

      @Deprecated public void setUser(User user)
      Deprecated.
    • getComment

      @Deprecated public String getComment()
      Deprecated.
    • setComment

      @Deprecated public void setComment(String comment)
      Deprecated.
    • getVersion

      @Deprecated public int getVersion()
      Deprecated.
    • setVersion

      @Deprecated public void setVersion(int version)
      Deprecated.
    • getOutputStream

      public OutputStream getOutputStream()
      Returns:
      output stream to the stored file.
    • setOutputStream

      public void setOutputStream(OutputStream outputStream)