@Override public void close() { if (store != null) store.close(); }
public void putMetadata(MFile file, String key, byte[] value) { if (store == null) initMM(); if (store != null) store.put(file.getPath()+"#"+key, value); }
public byte[] getMetadata(MFile file, String key) { if (store == null) initMM(); return (store == null) ? null : store.getBytes(file.getPath()+"#"+key); }
public void putMetadata(MFile file, String key, byte[] value) { if (store == null) initMM(); if (store != null) store.put(file.getPath()+"#"+key, value); }
public byte[] getMetadata(MFile file, String key) { if (store == null) initMM(); return (store == null) ? null : store.getBytes(file.getPath()+"#"+key); }
@Override public void close() { if (store != null) store.close(); }