public class StoreFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
RELATIVE_STORAGE |
| Constructor and Description |
|---|
StoreFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Store<InputStream> |
anonymousStore()
If the store must be unique, here is it.
|
static String |
convertToHex(byte[] data)
Utility to convert raw data to a hex-only charset.
|
static Store<InputStream> |
defaultStore()
Get a default store instance.
|
static Store<InputStream> |
newStore(File path)
Create a store on a disk folder exactly as specified in the parameter.
|
static Store<InputStream> |
newStore(File path,
boolean flush)
Create a new store with specified values for storage location and flush-policy (be careful!).
|
static Store<InputStream> |
sharedLocalStore()
Get a fixed folder on disk as store.
|
public static final String RELATIVE_STORAGE
public static Store<InputStream> defaultStore()
sharedLocalStore()public static Store<InputStream> sharedLocalStore()
new File( System.getProperty( "java.io.tmpdir" ) + "/tb"
}public static Store<InputStream> newStore(File path)
path - the path on disk. Will not be flushed.public static Store<InputStream> newStore(File path, boolean flush)
path - the path on disk. Will not be flushed.flush - whether or not to flush the content in path (dangerous)public static Store<InputStream> anonymousStore() throws IOException
IOException - in case no temp folder has been found.public static String convertToHex(byte[] data)
data - any charset data.Copyright © 2006–2019 OPS4J - Open Participation Software for Java. All rights reserved.