| Package | Description |
|---|---|
| org.osgl.storage.impl |
| Modifier and Type | Class and Description |
|---|---|
class |
StorageServiceBase<SOBJ_TYPE extends SObject>
The implementation base of
IStorageService |
| Modifier and Type | Class and Description |
|---|---|
class |
StorageObject<TYPE extends StorageObject,SVC extends StorageServiceBase<TYPE>> |
| Modifier and Type | Method and Description |
|---|---|
static SObject |
SObject.getInvalidObject(String key,
Throwable cause) |
static SObject |
SObject.lazyLoad(String key,
IStorageService ss) |
static SObject |
SObject.lazyLoad(String key,
IStorageService ss,
Map<String,String> conf) |
static SObject |
SObject.lazyLoad(String key,
IStorageService ss,
String... attrs) |
static SObject |
SObject.loadResource(String url)
Load an sobject from classpath by given url path
|
static SObject |
SObject.of(byte[] buf)
Construct an sobject with content in byte array and a random generated key
|
static SObject |
SObject.of(byte[] buf,
int len)
Construct an SObject with random generated key, byte array and number of bytes
|
static SObject |
SObject.of(File file)
Construct an SObject with file specified.
|
static SObject |
SObject.of(InputStream is)
Construct an sobject with specified input stream and a randomly generated key.
|
static SObject |
SObject.of(String content)
Construct an sobject with specified content in String and a randomly generated key
|
static SObject |
SObject.of(String key,
byte[] buf)
Construct an sobject with specified key and byte array.
|
static SObject |
SObject.of(String key,
byte[] buf,
int len)
Construct an SObject with specified key, byte array and number of bytes
|
static SObject |
SObject.of(String key,
byte[] buf,
Map<String,String> attrs)
Construct an sobject with specified key, content as byte array and attributes in
Map |
static SObject |
SObject.of(String key,
byte[] buf,
String... attrs)
Construct an sobject with specified key, content in byte array and attributes in sequence of key1, val1, key1, val2, …
|
static SObject |
SObject.of(String key,
File file)
Construct an SObject with key and file specified
|
static SObject |
SObject.of(String key,
File file,
Map<String,String> attributes)
Construct an SObject with specified key, file and attributes specified in
Map |
static SObject |
SObject.of(String key,
File file,
String... attrs)
Construct an SObject with key, file and attributes specified in key1, val1, key2, val2… sequence
|
static SObject |
SObject.of(String key,
InputStream is)
Construct an SObject with key and input stream.
|
static SObject |
SObject.of(String key,
InputStream is,
Map<String,String> conf)
Construct a sobject with key, input stream and attributes specified in a
Map. |
static SObject |
SObject.of(String key,
InputStream is,
String... attrs)
Construct a sobject with key, input stream and attributes specified in a sequence like key1, val1, key2, val2, …
|
static SObject |
SObject.of(String key,
String content)
Construct an sobject with content and key specified
|
static SObject |
SObject.of(String key,
String content,
Map<String,String> attrs)
Construct an sobject with content, key and attributes specified in
Map |
static SObject |
SObject.of(String key,
String content,
String... attrs)
Construct an sobject with key, content and attributes specified in sequence key1, val1, key2, val2, …
|
static SObject |
SObject.valueOf(String key,
byte[] buf)
Deprecated.
|
static SObject |
SObject.valueOf(String key,
byte[] buf,
Map<String,String> attrs)
Deprecated.
|
static SObject |
SObject.valueOf(String key,
byte[] buf,
String... attrs)
Deprecated.
|
static SObject |
SObject.valueOf(String key,
File f)
Deprecated.
|
static SObject |
SObject.valueOf(String key,
File file,
Map<String,String> conf)
Deprecated.
|
static SObject |
SObject.valueOf(String key,
File file,
String... attrs)
Deprecated.
|
static SObject |
SObject.valueOf(String key,
InputStream is)
Deprecated.
|
static SObject |
SObject.valueOf(String key,
InputStream is,
Map<String,String> conf)
Deprecated.
|
static SObject |
SObject.valueOf(String key,
InputStream is,
String... attrs)
Deprecated.
|
static SObject |
SObject.valueOf(String key,
ISObject copy) |
static SObject |
SObject.valueOf(String key,
String content)
Deprecated.
|
static SObject |
SObject.valueOf(String key,
String content,
Map<String,String> attrs)
Deprecated.
|
static SObject |
SObject.valueOf(String key,
String content,
String... attrs)
Deprecated.
|
Copyright © 2013–2017 OSGL (Open Source General Library). All rights reserved.