AbstractConfig.java
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.jackrabbit.vault.fs.config.AbstractConfig
* org.apache.jackrabbit.vault.fs.config.ConfigurationException
* org.slf4j.Logger
* org.slf4j.LoggerFactory
*/
package com.day.jcr.vault.fs.config;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.apache.jackrabbit.vault.fs.config.ConfigurationException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public abstract class AbstractConfig {
protected static Logger log = LoggerFactory.getLogger(AbstractConfig.class);
public static final String DIR_NAME = ".vault";
public static final String ATTR_VERSION = "version";
private final org.apache.jackrabbit.vault.fs.config.AbstractConfig config;
protected AbstractConfig(org.apache.jackrabbit.vault.fs.config.AbstractConfig config) {
this.config = config;
}
public boolean load(File configFile) throws IOException, ConfigurationException {
return this.config.load(configFile);
}
public File getConfigDir() throws IOException {
return this.config.getConfigDir();
}
public void save(OutputStream out) throws IOException {
this.config.save(out);
}
public boolean load(InputStream in) throws IOException, ConfigurationException {
return this.config.load(in);
}
public void save(File configFile) throws IOException {
this.config.save(configFile);
}
}