1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package net.sf.magicproject.database.propertyconfig;
20
21 import java.io.IOException;
22 import java.io.InputStream;
23
24 import net.sf.magicproject.tools.MToolKit;
25
26
27 /***
28 * @author <a href="mailto:fabdouglas@users.sourceforge.net">Fabrice Daugan </a>
29 * @since 0.90
30 */
31 public class Cache extends PropertyConfig {
32
33 /***
34 * Create a new instance of this class.
35 *
36 * @param dbStream
37 * the input stream containing the property name.
38 * @throws IOException
39 * if error occured during the reading process from the specified
40 * input stream
41 */
42 Cache(InputStream dbStream) throws IOException {
43 this(MToolKit.readString(dbStream));
44 }
45
46 /***
47 * Create a new instance of this class.
48 *
49 * @param property
50 * the property name.
51 */
52 public Cache(String property) {
53 super(property);
54 }
55
56 @Override
57 boolean isTranslated() {
58 return false;
59 }
60 }