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