root / import / ext3D / trunk / install-extension3d / IzPack / src / lib / com / izforge / izpack / ParsableFile.java @ 15280
History | View | Annotate | Download (2.2 KB)
1 |
/*
|
---|---|
2 |
* $Id: ParsableFile.java,v 1.1 2006/06/14 07:29:07 cesar Exp $
|
3 |
* IzPack
|
4 |
* Copyright (C) 2001 Johannes Lehtinen
|
5 |
*
|
6 |
* File : Pack.java
|
7 |
* Description : Contains informations about a parsable file.
|
8 |
* Author's email : johannes.lehtinen@iki.fi
|
9 |
* Author's Website : http://www.iki.fi/jle/
|
10 |
*
|
11 |
* This program is free software; you can redistribute it and/or
|
12 |
* modify it under the terms of the GNU General Public License
|
13 |
* as published by the Free Software Foundation; either version 2
|
14 |
* of the License, or any later version.
|
15 |
*
|
16 |
* This program is distributed in the hope that it will be useful,
|
17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19 |
* GNU General Public License for more details.
|
20 |
*
|
21 |
* You should have received a copy of the GNU General Public License
|
22 |
* along with this program; if not, write to the Free Software
|
23 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
24 |
*/
|
25 |
package com.izforge.izpack; |
26 |
|
27 |
import java.io.Serializable; |
28 |
import java.util.List; |
29 |
|
30 |
/**
|
31 |
* Encloses information about a parsable file. This class abstracts the way the
|
32 |
* information is stored to package.
|
33 |
*
|
34 |
* @author Johannes Lehtinen <johannes.lehtinen@iki.fi>
|
35 |
*/
|
36 |
public class ParsableFile implements Serializable |
37 |
{ |
38 |
|
39 |
/** The file path */
|
40 |
public String path = null; |
41 |
|
42 |
/** The file type (or null for default) */
|
43 |
public String type = null; |
44 |
|
45 |
/** The file encoding (or null for default) */
|
46 |
public String encoding = null; |
47 |
|
48 |
/** The list of OS constraints limiting file installation. */
|
49 |
public List osConstraints = null; |
50 |
|
51 |
/**
|
52 |
* Constructs and initializes a new instance.
|
53 |
*
|
54 |
* @param path the file path
|
55 |
* @param type the file type (or null for default)
|
56 |
* @param encoding the file encoding (or null for default)
|
57 |
* @param osConstraints the OS constraint (or null for any OS)
|
58 |
*/
|
59 |
public ParsableFile(String path, String type, String encoding, List osConstraints) |
60 |
{ |
61 |
this.path = path;
|
62 |
this.type = type;
|
63 |
this.encoding = encoding;
|
64 |
this.osConstraints = osConstraints;
|
65 |
} |
66 |
|
67 |
} |
68 |
|