Vollständige Java 8 Kompatibilität hinzugefügt.

This commit is contained in:
2025-09-11 01:23:17 +02:00
parent c9355b3a08
commit 1d45824d55
34 changed files with 1795 additions and 1286 deletions
+2 -17
View File
@@ -1,30 +1,15 @@
import java.io.IOException;
import java.net.URI;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Map;
public class InMemoryPathFactory {
private static InMemoryFileSystem fileSystem;
private static final InMemoryFileSystemProvider provider = new InMemoryFileSystemProvider();
private static final InMemoryFileSystem fileSystem = new InMemoryFileSystem(provider);
private InMemoryPathFactory() {
// Utility class - private constructor
}
static {
try {
// Create the in-memory file system
URI uri = URI.create("memory://default/");
Map<String, Object> env = new HashMap<>();
fileSystem = (InMemoryFileSystem) FileSystems.newFileSystem(uri, env);
} catch (IOException e) {
throw new RuntimeException("Failed to create in-memory file system", e);
}
}
/**
* Creates a new in-memory path
*