LibreOffice Module connectivity (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
connectivity::java_io_Reader Class Referencefinal

#include <Reader.hxx>

Inheritance diagram for connectivity::java_io_Reader:
[legend]
Collaboration diagram for connectivity::java_io_Reader:
[legend]

Public Member Functions

virtual jclass getMyClass () const override
 
 java_io_Reader (JNIEnv *pEnv, jobject myObj)
 
virtual sal_Int32 SAL_CALL readBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nBytesToRead) override
 
virtual sal_Int32 SAL_CALL readSomeBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nMaxBytesToRead) override
 
virtual void SAL_CALL skipBytes (sal_Int32 nBytesToSkip) override
 
virtual sal_Int32 SAL_CALL available () override
 
virtual void SAL_CALL closeInput () override
 
- Public Member Functions inherited from connectivity::java_lang_Object
 java_lang_Object (JNIEnv *pEnv, jobject myObj)
 
 java_lang_Object ()
 
virtual ~java_lang_Object () COVERITY_NOEXCEPT_FALSE
 
void saveRef (JNIEnv *pEnv, jobject myObj)
 
jobject getJavaObject () const
 
void clearObject (JNIEnv &rEnv)
 
void clearObject ()
 
OUString toString () const
 
static ::rtl::Reference< jvmaccess::VirtualMachinegetVM (const css::uno::Reference< css::uno::XComponentContext > &_rxContext=nullptr)
 
void obtainMethodId_throwSQL (JNIEnv *_pEnv, const char *_pMethodName, const char *_pSignature, jmethodID &_inout_MethodID) const
 
void obtainMethodId_throwRuntime (JNIEnv *_pEnv, const char *_pMethodName, const char *_pSignature, jmethodID &_inout_MethodID) const
 
bool callBooleanMethod (const char *_pMethodName, jmethodID &_inout_MethodID) const
 
bool callBooleanMethodWithIntArg (const char *_pMethodName, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const
 
jobject callResultSetMethod (JNIEnv &_rEnv, const char *_pMethodName, jmethodID &_inout_MethodID) const
 
sal_Int32 callIntMethod_ThrowSQL (const char *_pMethodName, jmethodID &_inout_MethodID) const
 
sal_Int32 callIntMethod_ThrowRuntime (const char *_pMethodName, jmethodID &_inout_MethodID) const
 
sal_Int32 callIntMethodWithIntArg_ThrowSQL (const char *_pMethodName, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const
 
sal_Int32 callIntMethodWithIntArg_ThrowRuntime (const char *_pMethodName, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const
 
sal_Int32 callIntMethodWithStringArg (const char *_pMethodName, jmethodID &_inout_MethodID, const OUString &_nArgument) const
 
OUString callStringMethod (const char *_pMethodName, jmethodID &_inout_MethodID) const
 
OUString callStringMethodWithIntArg (const char *_pMethodName, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const
 
void callVoidMethod_ThrowSQL (const char *_pMethodName, jmethodID &_inout_MethodID) const
 
void callVoidMethod_ThrowRuntime (const char *_pMethodName, jmethodID &_inout_MethodID) const
 
void callVoidMethodWithIntArg_ThrowSQL (const char *_pMethodName, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const
 
void callVoidMethodWithIntArg_ThrowRuntime (const char *_pMethodName, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const
 
void callVoidMethodWithBoolArg_ThrowSQL (const char *_pMethodName, jmethodID &_inout_MethodID, bool _nArgument) const
 
void callVoidMethodWithBoolArg_ThrowRuntime (const char *_pMethodName, jmethodID &_inout_MethodID, bool _nArgument) const
 
void callVoidMethodWithStringArg (const char *_pMethodName, jmethodID &_inout_MethodID, const OUString &_nArgument) const
 
jobject callObjectMethod (JNIEnv *pEnv, const char *_pMethodName, const char *_pSignature, jmethodID &_inout_MethodID) const
 
jobject callObjectMethodWithIntArg (JNIEnv *pEnv, const char *_pMethodName, const char *_pSignature, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const
 
template<typename T >
callMethodWithIntArg (T(JNIEnv::*pCallMethod)(jobject obj, jmethodID methodID,...), const char *_pMethodName, const char *_pSignature, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const
 
template<typename T >
void callVoidMethod_ThrowSQL (const char *_pMethodName, const char *_pSignature, jmethodID &_inout_MethodID, sal_Int32 _nArgument, const T &_aValue) const
 

Private Member Functions

virtual ~java_io_Reader () override
 

Private Attributes

std::optional< char > m_buf
 

Static Private Attributes

static jclass theClass = nullptr
 

Additional Inherited Members

- Static Public Member Functions inherited from connectivity::java_lang_Object
static void ThrowSQLException (JNIEnv *pEnv, const css::uno::Reference< css::uno::XInterface > &_rContext)
 
static void ThrowLoggedSQLException (const ::comphelper::EventLogger &_rLogger, JNIEnv *pEnvironment, const css::uno::Reference< css::uno::XInterface > &_rxContext)
 
static void ThrowRuntimeException (JNIEnv *pEnv, const css::uno::Reference< css::uno::XInterface > &_rContext)
 
static jclass findMyClass (const char *_pClassName)
 
virtual jclass getMyClass () const
 
- Protected Attributes inherited from connectivity::java_lang_Object
jobject object
 
- Static Protected Attributes inherited from connectivity::java_lang_Object
static jclass theClass = nullptr
 

Detailed Description

Definition at line 32 of file Reader.hxx.

Constructor & Destructor Documentation

◆ ~java_io_Reader()

java_io_Reader::~java_io_Reader ( )
overrideprivatevirtual

Definition at line 36 of file Reader.cxx.

References connectivity::SDBThreadAttach::releaseRef().

◆ java_io_Reader()

java_io_Reader::java_io_Reader ( JNIEnv *  pEnv,
jobject  myObj 
)

Definition at line 31 of file Reader.cxx.

References connectivity::SDBThreadAttach::addRef().

Member Function Documentation

◆ available()

sal_Int32 SAL_CALL java_io_Reader::available ( )
overridevirtual

◆ closeInput()

void SAL_CALL java_io_Reader::closeInput ( )
overridevirtual

◆ getMyClass()

jclass java_io_Reader::getMyClass ( ) const
overridevirtual

Reimplemented from connectivity::java_lang_Object.

Definition at line 41 of file Reader.cxx.

References connectivity::java_lang_Object::findMyClass(), and theClass.

◆ readBytes()

sal_Int32 SAL_CALL java_io_Reader::readBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nBytesToRead 
)
overridevirtual

◆ readSomeBytes()

sal_Int32 SAL_CALL java_io_Reader::readSomeBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nMaxBytesToRead 
)
overridevirtual

Definition at line 49 of file Reader.cxx.

References aData, and readBytes().

◆ skipBytes()

void SAL_CALL java_io_Reader::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Member Data Documentation

◆ m_buf

std::optional<char> connectivity::java_io_Reader::m_buf
private

Definition at line 38 of file Reader.hxx.

Referenced by available(), readBytes(), and skipBytes().

◆ theClass

jclass java_io_Reader::theClass = nullptr
staticprivate

Definition at line 36 of file Reader.hxx.

Referenced by getMyClass().


The documentation for this class was generated from the following files: