public FileEntry(File file, DataStore store) { this.file = file; ref = new DataStoreSoftReference(store); }
@Override public void clear() { DataStore store = get(); if (store != null) store.dispose(); super.clear(); } }
DataStore getStore(boolean force) throws IOException { DataStore store = ref != null ? ref.get() : null; if (store == null && force) { store = factory.getDataStore(file); ref = new DataStoreSoftReference(store); } return store; }
@Override public void clear() { DataStore store = get(); if(store != null) store.dispose(); super.clear(); }
public FileEntry(File file, FactoryAdapter adapter, DataStore store) { this.file = file; this.adapter = adapter; this.ref = new DataStoreSoftReference(store); }
@Override public void clear() { DataStore store = get(); if(store != null) store.dispose(); super.clear(); }
public FileEntry(File file, DataStore store) { this.file = file; ref = new DataStoreSoftReference(store); }
DataStore getStore(boolean force) throws IOException { DataStore store = ref != null ? ref.get() : null; if(store == null && force) { store = adapter.getStore(file, namespaceURI); ref = new DataStoreSoftReference(store); } return store; }
DataStore getStore(boolean force) throws IOException { DataStore store = ref != null ? ref.get() : null; if(store == null && force) { store = factory.getDataStore(file); ref = new DataStoreSoftReference(store); } return store; }