forked from geodmms/xdgnjobs

?? ?
2008-05-06 0ffea4eece9090db61ff0042ac26a6cb2a356cab
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
package com.ximple.eofms.jobs;
 
import java.io.File;
 
public class GeneralDgnConvertJobContext extends AbstractDgnFileJobContext
{
    private final static String SHPOUTPATH = "shpout";
    private String dataOut = null;
 
    public GeneralDgnConvertJobContext(String dataPath)
    {
        super(dataPath);
    }
 
    public void startTransaction()
    {
    }
 
    public void commitTransaction()
    {
    }
 
    public void rollbackTransaction()
    {
    }
 
    public String getDataOutPath()
    {
        if (dataOut == null)
        {
            File outPath = new File(getDataPath(), SHPOUTPATH);
            if (!outPath.exists())
            {
                outPath.mkdir();
            } else if (!outPath.isDirectory())
            {
                outPath.mkdir();
            }
            dataOut = getDataPath() + SHPOUTPATH;
        }
        return dataOut;
    }
}