1 | // |
---|
2 | // $Id: AudioFileData.java 822 2009-07-02 14:49:12Z etienne_sf $ |
---|
3 | // |
---|
4 | // jupload - A file upload applet. |
---|
5 | // Copyright 2007 The JUpload Team |
---|
6 | // |
---|
7 | // Created: 2007-01-19 |
---|
8 | // Creator: etienne_sf |
---|
9 | // Last modified: $Date: 2009-07-02 11:49:12 -0300 (Qui, 02 Jul 2009) $ |
---|
10 | // |
---|
11 | // This program is free software; you can redistribute it and/or modify it under |
---|
12 | // the terms of the GNU General Public License as published by the Free Software |
---|
13 | // Foundation; either version 2 of the License, or (at your option) any later |
---|
14 | // version. This program is distributed in the hope that it will be useful, but |
---|
15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
16 | // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
---|
17 | // details. You should have received a copy of the GNU General Public License |
---|
18 | // along with this program; if not, write to the Free Software Foundation, Inc., |
---|
19 | // 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
20 | |
---|
21 | package wjhk.jupload2.filedata; |
---|
22 | |
---|
23 | import java.io.File; |
---|
24 | |
---|
25 | import wjhk.jupload2.policies.UploadPolicy; |
---|
26 | |
---|
27 | /** |
---|
28 | * This class contains all data for files to upload an audio file. It adds the |
---|
29 | * following elements to the {@link wjhk.jupload2.filedata.FileData} class :<BR> |
---|
30 | * <UL> |
---|
31 | * <LI>Pre-earing of audio files |
---|
32 | * <LI>To be completed |
---|
33 | * </UL> |
---|
34 | * <BR> |
---|
35 | * <BR> |
---|
36 | * The audio functionalities are taken from the entagged sourceforge project. |
---|
37 | * The entagged-audioformats.jar is used to generate the sound, within the |
---|
38 | * applet. To keep the applet jar file small, the entagged jar file is not |
---|
39 | * embedded into the jupload jar. It is loaded independantly. <BR> |
---|
40 | * <BR> |
---|
41 | * To be completed |
---|
42 | * |
---|
43 | * @author etienne_sf |
---|
44 | * @version $Revision: 822 $ |
---|
45 | */ |
---|
46 | |
---|
47 | public class AudioFileData extends DefaultFileData { |
---|
48 | |
---|
49 | /** |
---|
50 | * Creates a new instance. |
---|
51 | * |
---|
52 | * @param file The files which data are to be handled by this instance. |
---|
53 | * @param root The root directory, to calculate the relative dir (see |
---|
54 | * {@link #getRelativeDir()}. |
---|
55 | * @param uploadPolicy The current upload policy |
---|
56 | */ |
---|
57 | public AudioFileData(File file, File root, UploadPolicy uploadPolicy) { |
---|
58 | super(file, root, uploadPolicy); |
---|
59 | } |
---|
60 | |
---|
61 | } |
---|