public class StreamStoreFile extends java.lang.Object implements IStreamStoreWithBinary
IStreamStore implementation that persist the stream store
data within the file system.| Constructor and Description |
|---|
StreamStoreFile() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIfStreamExists(java.lang.String path,
boolean withError) |
java.util.List<java.lang.String> |
getContainedFolders(java.lang.String path,
boolean withError) |
java.util.List<java.lang.String> |
getContainedStreams(java.lang.String path,
boolean withError)
Querying is done gains the stream store directory + against the configuration
directory of the web application (eclntjsfserver/config).
|
void |
init(java.lang.String rootDirectoryWS) |
void |
init(java.lang.String rootDirectoryWS,
boolean withTenantManagement) |
byte[] |
readData(java.lang.String path,
boolean withError) |
java.lang.String |
readUTF8(java.lang.String path,
boolean withError)
Reading is done in the following sequence:
1.) |
void |
removeStream(java.lang.String path,
boolean withError)
Removing is done from the stream store directory.
|
void |
writeData(java.lang.String path,
byte[] data,
boolean withError) |
void |
writeUTF8(java.lang.String path,
java.lang.String xml,
boolean withError)
Writing is done into the stream store directory.
|
public void init(java.lang.String rootDirectoryWS)
rootDirectoryWS - Directory (wiht ending slash) that is the base for all file operations.public void init(java.lang.String rootDirectoryWS,
boolean withTenantManagement)
rootDirectoryWS - Directory (wiht ending slash) that is the base for all file operations.withTenantManagement - Indicator if tenant management should be activated or not. By default tenant
management is activated - there should be a really "good reason" not to use
it.public java.util.List<java.lang.String> getContainedStreams(java.lang.String path,
boolean withError)
getContainedStreams in interface IStreamStorepublic java.util.List<java.lang.String> getContainedFolders(java.lang.String path,
boolean withError)
getContainedFolders in interface IStreamStorepublic java.lang.String readUTF8(java.lang.String path,
boolean withError)
readUTF8 in interface IStreamStorepublic void writeUTF8(java.lang.String path,
java.lang.String xml,
boolean withError)
writeUTF8 in interface IStreamStorepublic byte[] readData(java.lang.String path,
boolean withError)
readData in interface IStreamStoreWithBinarypublic void writeData(java.lang.String path,
byte[] data,
boolean withError)
writeData in interface IStreamStoreWithBinarypublic void removeStream(java.lang.String path,
boolean withError)
removeStream in interface IStreamStorepublic boolean checkIfStreamExists(java.lang.String path,
boolean withError)
checkIfStreamExists in interface IStreamStoreCopyright © CaptainCasa Gmbh. All Rights Reserved.