import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
+import java.util.function.Consumer;
+import org.simantics.acorn.exception.AcornAccessVerificationException;
+import org.simantics.acorn.exception.IllegalAcornStateException;
import org.simantics.acorn.internal.ClusterChange;
import org.simantics.acorn.internal.ClusterStream;
import org.simantics.acorn.internal.ClusterSupport2;
import org.simantics.db.procore.cluster.ResourceTable;
import org.simantics.db.procore.cluster.ValueTable;
import org.simantics.db.service.ClusterUID;
-import org.simantics.utils.datastructures.Callback;
final public class ClusterBig extends ClusterImpl {
private static final int TABLE_HEADER_SIZE = TableHeader.HEADER_SIZE + TableHeader.EXTRA_SIZE;
try {
return resourceTable.getValue(valueTable, resourceIndex);
} catch (ExternalValueException e) {
- return clusterSupport.impl.getResourceFile(clusterUID.asBytes(), resourceIndex);
-// return support.getValueEx(resourceIndex, clusterUID.second);
+ try {
+ return clusterSupport.impl.getResourceFile(clusterUID.asBytes(), resourceIndex);
+ } catch (AcornAccessVerificationException | IllegalAcornStateException e1) {
+ throw new DatabaseException(e1);
+ }
}
}
@Override
}
@Override
- public void load(Callback<DatabaseException> r) {
+ public void load(Consumer<DatabaseException> r) {
throw new Error("Not supported.");
}