/** * Obtain all types of objects stored in the object store. * * @param buff The state in which to store the types. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. */ public boolean allTypes(InputObjectState buff) throws ObjectStoreException { if (stateTypes == null) throw new ObjectStoreException("Operation not supported by this implementation"); Set<String> types = new HashSet<>(stateTypes.values()); OutputObjectState store = new OutputObjectState(); for (String type : types) packString(store, type); packString(store, ""); buff.setBuffer(store.buffer()); return true; }
/** * Obtain all types of objects stored in the object store. * * @param buff The state in which to store the types. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. */ public boolean allTypes(InputObjectState buff) throws ObjectStoreException { if (stateTypes == null) throw new ObjectStoreException("Operation not supported by this implementation"); Set<String> types = new HashSet<>(stateTypes.values()); OutputObjectState store = new OutputObjectState(); for (String type : types) packString(store, type); packString(store, ""); buff.setBuffer(store.buffer()); return true; }
/** * Obtain all types of objects stored in the object store. * * @param buff The state in which to store the types. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. */ public boolean allTypes(InputObjectState buff) throws ObjectStoreException { if (stateTypes == null) throw new ObjectStoreException("Operation not supported by this implementation"); Set<String> types = new HashSet<>(stateTypes.values()); OutputObjectState store = new OutputObjectState(); for (String type : types) packString(store, type); packString(store, ""); buff.setBuffer(store.buffer()); return true; }
/** * Obtain all types of objects stored in the object store. * * @param buff The state in which to store the types. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. */ public boolean allTypes(InputObjectState buff) throws ObjectStoreException { if (stateTypes == null) throw new ObjectStoreException("Operation not supported by this implementation"); Set<String> types = new HashSet<>(stateTypes.values()); OutputObjectState store = new OutputObjectState(); for (String type : types) packString(store, type); packString(store, ""); buff.setBuffer(store.buffer()); return true; }
/** * Obtain all types of objects stored in the object store. * * @param buff The state in which to store the types. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. */ public boolean allTypes(InputObjectState buff) throws ObjectStoreException { if (stateTypes == null) throw new ObjectStoreException("Operation not supported by this implementation"); Set<String> types = new HashSet<>(stateTypes.values()); OutputObjectState store = new OutputObjectState(); for (String type : types) packString(store, type); packString(store, ""); buff.setBuffer(store.buffer()); return true; }
/** * Obtain all types of objects stored in the object store. * * @param buff The state in which to store the types. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. */ public boolean allTypes(InputObjectState buff) throws ObjectStoreException { if (stateTypes == null) throw new ObjectStoreException("Operation not supported by this implementation"); Set<String> types = new HashSet<>(stateTypes.values()); OutputObjectState store = new OutputObjectState(); for (String type : types) packString(store, type); packString(store, ""); buff.setBuffer(store.buffer()); return true; }