Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 84c293e

Browse files
committed
Update FileProcessor.java
1 parent 35bc655 commit 84c293e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

src/common-util/main/java/org/comroid/common/io/FileProcessor.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import org.comroid.common.Disposable;
44

55
import java.io.IOException;
6+
import java.util.UUID;
67

78
public interface FileProcessor extends Disposable {
89
FileHandle getFile();
@@ -21,4 +22,28 @@ default void close() throws MultipleExceptions {
2122
disposeThrow();
2223
}
2324
}
25+
26+
interface Underlying extends FileProcessor {
27+
FileProcessor getUnderlyingFileProcessor();
28+
29+
@Override
30+
default FileHandle getFile() {
31+
return getUnderlyingFileProcessor().getFile();
32+
}
33+
34+
@Override
35+
default int storeData() throws IOException {
36+
return getUnderlyingFileProcessor().storeData();
37+
}
38+
39+
@Override
40+
default int reloadData() throws IOException {
41+
return getUnderlyingFileProcessor().reloadData();
42+
}
43+
44+
@Override
45+
default UUID getUUID() {
46+
return getUnderlyingFileProcessor().getUUID();
47+
}
48+
}
2449
}

0 commit comments

Comments
 (0)