You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Attachment.java 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. Copyright (c) 2011 James Ahlborn
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. This library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with this library; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  14. USA
  15. */
  16. package com.healthmarketscience.jackcess.complex;
  17. import java.io.IOException;
  18. import java.util.Date;
  19. /**
  20. * Complex value corresponding to an attachment.
  21. *
  22. * @author James Ahlborn
  23. */
  24. public interface Attachment extends ComplexValue
  25. {
  26. public byte[] getFileData() throws IOException;
  27. public void setFileData(byte[] data);
  28. public byte[] getEncodedFileData() throws IOException;
  29. public void setEncodedFileData(byte[] data);
  30. public String getFileName();
  31. public void setFileName(String fileName);
  32. public String getFileUrl();
  33. public void setFileUrl(String fileUrl);
  34. public String getFileType();
  35. public void setFileType(String fileType);
  36. public Date getFileTimeStamp();
  37. public void setFileTimeStamp(Date fileTimeStamp);
  38. public Integer getFileFlags();
  39. public void setFileFlags(Integer fileFlags);
  40. }