Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Attachment.java 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. Copyright (c) 2011 James Ahlborn
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package com.healthmarketscience.jackcess.complex;
  14. import java.io.IOException;
  15. import java.time.LocalDateTime;
  16. import java.util.Date;
  17. import com.healthmarketscience.jackcess.DateTimeType;
  18. /**
  19. * Complex value corresponding to an attachment.
  20. *
  21. * @author James Ahlborn
  22. */
  23. public interface Attachment extends ComplexValue
  24. {
  25. public byte[] getFileData() throws IOException;
  26. public void setFileData(byte[] data);
  27. public byte[] getEncodedFileData() throws IOException;
  28. public void setEncodedFileData(byte[] data);
  29. public String getFileName();
  30. public void setFileName(String fileName);
  31. public String getFileUrl();
  32. public void setFileUrl(String fileUrl);
  33. public String getFileType();
  34. public void setFileType(String fileType);
  35. /**
  36. * @deprecated see {@link DateTimeType} for details
  37. */
  38. @Deprecated
  39. public Date getFileTimeStamp();
  40. /**
  41. * @deprecated see {@link DateTimeType} for details
  42. */
  43. @Deprecated
  44. public void setFileTimeStamp(Date fileTimeStamp);
  45. public LocalDateTime getFileLocalTimeStamp();
  46. public void setFileLocalTimeStamp(LocalDateTime fileTimeStamp);
  47. public Object getFileTimeStampObject();
  48. public Integer getFileFlags();
  49. public void setFileFlags(Integer fileFlags);
  50. }