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.util.Date;
21  
22  /**
23   * Complex value corresponding to an attachment.
24   *
25   * @author James Ahlborn
26   */
27  public interface Attachment extends ComplexValue 
28  {
29    public byte[] getFileData() throws IOException;
30  
31    public void setFileData(byte[] data);
32  
33    public byte[] getEncodedFileData() throws IOException;
34  
35    public void setEncodedFileData(byte[] data);
36  
37    public String getFileName();
38  
39    public void setFileName(String fileName);
40    
41    public String getFileUrl();
42  
43    public void setFileUrl(String fileUrl);
44    
45    public String getFileType();
46  
47    public void setFileType(String fileType);
48    
49    public Date getFileTimeStamp();
50  
51    public void setFileTimeStamp(Date fileTimeStamp);
52    
53    public Integer getFileFlags();
54  
55    public void setFileFlags(Integer fileFlags);  
56  }