1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.filter.input; |
21 |
|
|
22 |
|
import java.io.File; |
23 |
|
import java.io.IOException; |
24 |
|
|
25 |
|
|
26 |
|
@version |
27 |
|
@since |
28 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 4 |
Complexity Density: 1.33 |
|
29 |
|
public class DirectoryInputSource implements FileInputSource |
30 |
|
{ |
31 |
|
private final File file; |
32 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
33 |
0 |
public DirectoryInputSource(File file)... |
34 |
|
{ |
35 |
0 |
this.file = file; |
36 |
|
} |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
38 |
0 |
@Override... |
39 |
|
public boolean restartSupported() |
40 |
|
{ |
41 |
0 |
return true; |
42 |
|
} |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0 |
@Override... |
45 |
|
public File getFile() |
46 |
|
{ |
47 |
0 |
return this.file; |
48 |
|
} |
49 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
50 |
0 |
@Override... |
51 |
|
public void close() throws IOException |
52 |
|
{ |
53 |
|
|
54 |
|
} |
55 |
|
} |