1 package org.treetank.api;
2
3 import java.io.File;
4 import java.io.IOException;
5
6 import org.treetank.exception.TTException;
7 import org.treetank.exception.TTIOException;
8
9
10
11
12
13
14 public interface IFilelistenerWriteTrx extends IFilelistenerReadTrx {
15
16
17
18
19
20
21
22 public void addFile(File pFile, String pRelativePath) throws TTException, IOException;
23
24
25
26
27
28
29
30 public void removeFile(String pRelativePath) throws TTException;
31
32
33
34
35
36 public int getCount();
37
38
39
40
41
42
43 public void commit() throws TTException;
44
45
46
47
48
49
50 public void commitBlocked() throws TTException;
51
52
53
54
55
56
57
58 public void abort() throws TTException;
59
60
61
62
63
64
65
66 void addEmptyFile(String pRelativePath) throws TTException, IOException;
67 }