KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > izforge > izpack > ParsableFile


1 /*
2  * IzPack - Copyright 2001-2007 Julien Ponge, All Rights Reserved.
3  *
4  * http://www.izforge.com/izpack/
5  * http://developer.berlios.de/projects/izpack/
6  *
7  * Copyright 2001 Johannes Lehtinen
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */

21
22 package com.izforge.izpack;
23
24 import java.io.Serializable JavaDoc;
25 import java.util.List JavaDoc;
26
27 /**
28  * Encloses information about a parsable file. This class abstracts the way the information is
29  * stored to package.
30  *
31  * @author Johannes Lehtinen <johannes.lehtinen@iki.fi>
32  */

33 public class ParsableFile implements Serializable JavaDoc
34 {
35
36     static final long serialVersionUID = -7761309341843715721L;
37
38     /** The file path */
39     public String JavaDoc path = null;
40
41     /** The file type (or null for default) */
42     public String JavaDoc type = null;
43
44     /** The file encoding (or null for default) */
45     public String JavaDoc encoding = null;
46
47     /** The list of OS constraints limiting file installation. */
48     public List JavaDoc osConstraints = null;
49
50     /**
51      * Constructs and initializes a new instance.
52      *
53      * @param path the file path
54      * @param type the file type (or null for default)
55      * @param encoding the file encoding (or null for default)
56      * @param osConstraints the OS constraint (or null for any OS)
57      */

58     public ParsableFile(String JavaDoc path, String JavaDoc type, String JavaDoc encoding, List JavaDoc osConstraints)
59     {
60         this.path = path;
61         this.type = type;
62         this.encoding = encoding;
63         this.osConstraints = osConstraints;
64     }
65
66 }
67
Popular Tags