KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > irplugin > BinaryFileDataSource


1 /*
2  * BinaryFileDataSource.java
3  *
4  * All rights reserved.
5  * Copyright (C) 2005 JasperSoft Corporation
6  *
7  * JasperSoft Corporation
8  * 303 Second Street, Suite 450 North
9  * San Francisco, CA 94107
10  * http://www.jaspersoft.com
11  *
12  *
13  * Created on April 21, 2006, 1:04 AM
14  *
15  */

16
17 package com.jaspersoft.jasperserver.irplugin;
18
19 import java.io.File JavaDoc;
20 import javax.activation.FileDataSource JavaDoc;
21
22 /**
23  *
24  * @author gtoffoli
25  */

26 public class BinaryFileDataSource extends FileDataSource JavaDoc {
27     
28     
29     public String JavaDoc getContentType() {
30         return "application/octet-stream";
31     }
32     
33     /** Creates a new instance of BinaryFileDataSource */
34     public BinaryFileDataSource(File JavaDoc file) {
35         super(file);
36     }
37     
38 }
39
Popular Tags