20#if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H
25#include <osl/diagnose.h>
27#include <com/sun/star/embed/XTransactedObject.hpp>
28#include <com/sun/star/io/XStream.hpp>
29#include <com/sun/star/document/XDocumentSubStorageSupplier.hpp>
48 (JNIEnv * env, jobject , jstring
name, jstring key, jint mode)
52 OperationLogFile(
env,
name,
"output" ).logOperation(
"openStream" );
53 LogFile(
env,
name,
"output" ).create();
56 StorageContainer::registerStream(
env,
name,key,
mode);
64 (JNIEnv * env, jobject obj_this, jstring key, jstring
name, jbyteArray buffer, jint off, jint len)
67 OperationLogFile(
env,
name,
"output" ).logOperation(
"write( byte[], int, int )" );
69 DataLogFile aDataLog(
env,
name,
"output" );
83 (JNIEnv * env, jobject obj_this, jstring key, jstring
name, jbyteArray buffer)
86 OperationLogFile(
env,
name,
"output" ).logOperation(
"write( byte[] )" );
88 DataLogFile aDataLog(
env,
name,
"output" );
102 (JNIEnv * env, jobject , jstring key, jstring
name)
105 OperationLogFile aOpLog(
env,
name,
"output" );
106 aOpLog.logOperation(
"close" );
108 LogFile aDataLog(
env,
name,
"output" );
111 std::shared_ptr<StreamHelper> pHelper = StorageContainer::getRegisteredStream(
env,
name,key);
112 Reference< XOutputStream> xFlush = pHelper ? pHelper->getOutputStream() : Reference< XOutputStream>();
125 StorageContainer::revokeStream(
env,
name,key);
134 (JNIEnv * env, jobject obj_this, jstring key, jstring
name,jint b)
137 OperationLogFile(
env,
name,
"output" ).logOperation(
"write( int )" );
139 DataLogFile aDataLog(
env,
name,
"output" );
153 (JNIEnv * env, jobject , jstring key, jstring
name)
156 OperationLogFile(
env,
name,
"output" ).logOperation(
"flush" );
158 OUString sKey = StorageContainer::jstring2ustring(
env,key);
159 OUString
sName = StorageContainer::jstring2ustring(
env,
name);
173 (JNIEnv * env, jobject , jstring key, jstring
name)
176 OperationLogFile(
env,
name,
"output" ).logOperation(
"sync" );
178 std::shared_ptr< StreamHelper > pStream = StorageContainer::getRegisteredStream(
env,
name, key );
179 Reference< XOutputStream > xFlush = pStream ? pStream->getOutputStream() : Reference< XOutputStream>();
180 OSL_ENSURE( xFlush.is(),
"StorageNativeOutputStream::sync: could not retrieve an output stream!" );
189 OSL_FAIL(
"StorageNativeOutputStream::sync: could not flush output stream!" );
void write_to_storage_stream_from_buffer(JNIEnv *env, jstring name, jstring key, jbyteArray buffer, jint off, jint len)
void write_to_storage_stream(JNIEnv *env, jstring name, jstring key, jint v)
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream_write__Ljava_lang_String_2Ljava_lang_String_2_3BII(JNIEnv *env, jobject obj_this, jstring key, jstring name, jbyteArray buffer, jint off, jint len)
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream_openStream(JNIEnv *env, jobject, jstring name, jstring key, jint mode)
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream_sync(JNIEnv *env, jobject, jstring key, jstring name)
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream_write__Ljava_lang_String_2Ljava_lang_String_2_3B(JNIEnv *env, jobject obj_this, jstring key, jstring name, jbyteArray buffer)
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream_flush(JNIEnv *env, jobject, jstring key, jstring name)
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream_close(JNIEnv *env, jobject, jstring key, jstring name)
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeOutputStream_write__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv *env, jobject obj_this, jstring key, jstring name, jint b)
const css::uno::Reference< css::xml::crypto::XSecurityEnvironment > & env