/** * Construct an sobject with content, key and attributes specified in * {@link Map} */ public static SObject of(String key, String content, Map<String, String> attrs) { SObject sobj = of(key, content); sobj.setAttributes(attrs); return sobj; }
public static SObject lazyLoad(String key, IStorageService ss, Map<String, String> conf) { SObject sobj = lazyLoad(key, ss); sobj.setAttributes(conf); return sobj; }
/** * Construct an sobject with content, key and attributes specified in * {@link Map} */ public static SObject of(String key, String content, Map<String, String> attrs) { SObject sobj = of(key, content); sobj.setAttributes(attrs); return sobj; }
public static SObject lazyLoad(String key, IStorageService ss, Map<String, String> conf) { SObject sobj = lazyLoad(key, ss); sobj.setAttributes(conf); return sobj; }
@Override public ISObject getLazy(String key, Map<String, String> attrs) { SObject sobj = SObject.lazyLoad(key, this); sobj.setAttributes(attrs); return sobj; }
/** * Construct a sobject with key, input stream and attributes specified in a * {@link Map}. * <p> * <p>Node the sobject constrcuted from input stream has limits * please see the comment to {@link #of(String, InputStream)} * </p> * * @see #of(String, InputStream) */ public static SObject of(String key, InputStream is, Map<String, String> conf) { SObject sobj = of(key, is); sobj.setAttributes(conf); return sobj; }
/** * Construct a sobject with key, input stream and attributes specified in a * {@link Map}. * <p> * <p>Node the sobject constrcuted from input stream has limits * please see the comment to {@link #of(String, InputStream)} * </p> * * @see #of(String, InputStream) */ public static SObject of(String key, InputStream is, Map<String, String> conf) { SObject sobj = of(key, is); sobj.setAttributes(conf); return sobj; }
public static SObject lazyLoad(String key, IStorageService ss, String... attrs) { SObject sobj = lazyLoad(key, ss); Map<String, String> map = C.Map(attrs); sobj.setAttributes(map); return sobj; }
/** * Construct an sobject with key, content and attributes specified in sequence * key1, val1, key2, val2, ... * * @see #of(String, String, Map) */ public static SObject of(String key, String content, String... attrs) { SObject sobj = of(key, content); Map<String, String> map = C.Map(attrs); sobj.setAttributes(map); return sobj; }
/** * Construct an sobject with specified key, content as byte array * and attributes in {@link Map} * * @see #of(String, byte[], String...) */ public static SObject of(String key, byte[] buf, Map<String, String> attrs) { SObject sobj = of(key, $.requireNotNull(buf)); sobj.setAttributes(attrs); return sobj; }
/** * Construct an SObject with specified key, file and attributes * specified in {@link Map} * * @see #of(String, File, String...) */ public static SObject of(String key, File file, Map<String, String> attributes) { SObject sobj = of(key, $.requireNotNull(file)); sobj.setAttributes(attributes); return sobj; }
/** * Construct an sobject with key, content and attributes specified in sequence * key1, val1, key2, val2, ... * * @see #of(String, String, Map) */ public static SObject of(String key, String content, String... attrs) { SObject sobj = of(key, content); Map<String, String> map = C.Map(attrs); sobj.setAttributes(map); return sobj; }
/** * Construct an sobject with specified key, content as byte array * and attributes in {@link Map} * * @see #of(String, byte[], String...) */ public static SObject of(String key, byte[] buf, Map<String, String> attrs) { SObject sobj = of(key, $.requireNotNull(buf)); sobj.setAttributes(attrs); return sobj; }
public static SObject lazyLoad(String key, IStorageService ss, String... attrs) { SObject sobj = lazyLoad(key, ss); Map<String, String> map = C.Map(attrs); sobj.setAttributes(map); return sobj; }
/** * Construct an SObject with specified key, file and attributes * specified in {@link Map} * * @see #of(String, File, String...) */ public static SObject of(String key, File file, Map<String, String> attributes) { SObject sobj = of(key, $.requireNotNull(file)); sobj.setAttributes(attributes); return sobj; }
/** * Construct a sobject with key, input stream and attributes specified in a * sequence like key1, val1, key2, val2, ... * <p> * <p>Node the sobject constrcuted from input stream has limits * please see the comment to {@link #of(String, InputStream)} * </p> * * @see #of(String, InputStream) */ public static SObject of(String key, InputStream is, String... attrs) { SObject sobj = of(key, is); Map<String, String> map = C.Map(attrs); sobj.setAttributes(map); return sobj; }
/** * Construct an sobject with specified key, content in byte array and * attributes in sequence of key1, val1, key1, val2, ... * * @see #of(String, byte[], Map) */ public static SObject of(String key, byte[] buf, String... attrs) { SObject sobj = of(key, $.requireNotNull(buf)); Map<String, String> map = C.Map(attrs); sobj.setAttributes(map); return sobj; }
/** * Construct an sobject with specified key, content in byte array and * attributes in sequence of key1, val1, key1, val2, ... * * @see #of(String, byte[], Map) */ public static SObject of(String key, byte[] buf, String... attrs) { SObject sobj = of(key, $.requireNotNull(buf)); Map<String, String> map = C.Map(attrs); sobj.setAttributes(map); return sobj; }
/** * Construct an SObject with key, file and attributes specified in * key1, val1, key2, val2... sequence * * @see #of(String, File, Map) */ public static SObject of(String key, File file, String... attrs) { SObject sobj = of(key, $.requireNotNull(file)); Map<String, String> map = C.Map(attrs); sobj.setAttributes(map); return sobj; }
/** * Construct an SObject with key, file and attributes specified in * key1, val1, key2, val2... sequence * * @see #of(String, File, Map) */ public static SObject of(String key, File file, String... attrs) { SObject sobj = of(key, $.requireNotNull(file)); Map<String, String> map = C.Map(attrs); sobj.setAttributes(map); return sobj; }