diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 17:55:54 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 18:03:18 +0100 |
commit | f725fadea60a4a74724f8bb9c71aa54a644c35bb (patch) | |
tree | 971a86d011ff6d7362d83be5f7f80aa453be8584 /io | |
parent | 6e3cbd285ebf5ec8b97576eb234711cd465e573e (diff) |
New loplugin:dynexcspec: Add @throws documentation, io
Change-Id: I2d8b69454217bbbc9542cced8ce85269e3872662
Diffstat (limited to 'io')
-rw-r--r-- | io/source/TextInputStream/TextInputStream.cxx | 4 | ||||
-rw-r--r-- | io/source/TextOutputStream/TextOutputStream.cxx | 1 | ||||
-rw-r--r-- | io/source/acceptor/acceptor.cxx | 1 | ||||
-rw-r--r-- | io/source/services.hxx | 8 | ||||
-rw-r--r-- | io/source/stm/omark.cxx | 2 | ||||
-rw-r--r-- | io/source/stm/streamhelper.hxx | 8 |
6 files changed, 23 insertions, 1 deletions
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx index 5e43365ecc3c..9ae0dcd65c1d 100644 --- a/io/source/TextInputStream/TextInputStream.cxx +++ b/io/source/TextInputStream/TextInputStream.cxx @@ -71,9 +71,13 @@ class OTextInputStream : public WeakImplHelper< XTextInputStream2, XServiceInfo bool mbReachedEOF; void implResizeBuffer(); + /// @throws IOException + /// @throws RuntimeException OUString implReadString( const Sequence< sal_Unicode >& Delimiters, bool bRemoveDelimiter, bool bFindLineEnd ) throw(IOException, RuntimeException); + /// @throws IOException + /// @throws RuntimeException sal_Int32 implReadNext() throw(IOException, RuntimeException); public: diff --git a/io/source/TextOutputStream/TextOutputStream.cxx b/io/source/TextOutputStream/TextOutputStream.cxx index 3bd4c8de181a..bd2004e26a3d 100644 --- a/io/source/TextOutputStream/TextOutputStream.cxx +++ b/io/source/TextOutputStream/TextOutputStream.cxx @@ -61,6 +61,7 @@ class OTextOutputStream : public WeakImplHelper< XTextOutputStream2, XServiceInf rtl_UnicodeToTextContext mContextUnicode2Text; Sequence<sal_Int8> implConvert( const OUString& rSource ); + /// @throws IOException void checkOutputStream() throw(IOException); public: diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx index 939eb436e402..61ad3c6879bd 100644 --- a/io/source/acceptor/acceptor.cxx +++ b/io/source/acceptor/acceptor.cxx @@ -100,6 +100,7 @@ namespace io_acceptor struct BeingInAccept { + /// @throws AlreadyAcceptingException BeingInAccept( bool *pFlag,const OUString & sConnectionDescription ) throw( AlreadyAcceptingException) : m_pFlag( pFlag ) { diff --git a/io/source/services.hxx b/io/source/services.hxx index e6a55da677a3..a81fd9422b5b 100644 --- a/io/source/services.hxx +++ b/io/source/services.hxx @@ -56,34 +56,42 @@ namespace io_TextOutputStream { } namespace io_stm { + /// @throws Exception Reference< XInterface > SAL_CALL OPipeImpl_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception); OUString OPipeImpl_getImplementationName(); Sequence<OUString> OPipeImpl_getSupportedServiceNames(); + /// @throws Exception Reference< XInterface > SAL_CALL ODataInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception); OUString ODataInputStream_getImplementationName(); Sequence<OUString> ODataInputStream_getSupportedServiceNames(); + /// @throws Exception Reference< XInterface > SAL_CALL ODataOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception); OUString ODataOutputStream_getImplementationName(); Sequence<OUString> ODataOutputStream_getSupportedServiceNames(); + /// @throws Exception Reference< XInterface > SAL_CALL OMarkableOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception); OUString OMarkableOutputStream_getImplementationName(); Sequence<OUString> OMarkableOutputStream_getSupportedServiceNames(); + /// @throws Exception Reference< XInterface > SAL_CALL OMarkableInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception); OUString OMarkableInputStream_getImplementationName() ; Sequence<OUString> OMarkableInputStream_getSupportedServiceNames(); + /// @throws Exception Reference< XInterface > SAL_CALL OObjectOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw(Exception); OUString OObjectOutputStream_getImplementationName(); Sequence<OUString> OObjectOutputStream_getSupportedServiceNames(); + /// @throws Exception Reference< XInterface > SAL_CALL OObjectInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw(Exception); OUString OObjectInputStream_getImplementationName() ; Sequence<OUString> OObjectInputStream_getSupportedServiceNames(); + /// @throws Exception Reference< XInterface > SAL_CALL OPumpImpl_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception); OUString OPumpImpl_getImplementationName(); Sequence<OUString> OPumpImpl_getSupportedServiceNames(); diff --git a/io/source/stm/omark.cxx b/io/source/stm/omark.cxx index 31d07604cbf0..af4e9f248456 100644 --- a/io/source/stm/omark.cxx +++ b/io/source/stm/omark.cxx @@ -130,6 +130,8 @@ public: // XServiceInfo private: // helper methods + /// @throws NotConnectedException + /// @throws BufferSizeExceededException void checkMarksAndFlush() throw( NotConnectedException, BufferSizeExceededException); Reference< XConnectable > m_succ; diff --git a/io/source/stm/streamhelper.hxx b/io/source/stm/streamhelper.hxx index 11f65567e129..d175b46c9764 100644 --- a/io/source/stm/streamhelper.hxx +++ b/io/source/stm/streamhelper.hxx @@ -40,15 +40,18 @@ public: * overwrites data at given position. Size is automatically extended, when * data is written beyond end. ***/ + /// @throws css::io::BufferSizeExceededException void writeAt( sal_Int32 nPos, const Sequence<sal_Int8> &) throw(css::io::BufferSizeExceededException); + /// @throws css::io::BufferSizeExceededException void readAt( sal_Int32 nPos, Sequence<sal_Int8> & , sal_Int32 nBytesToRead ) const throw(css::io::BufferSizeExceededException); sal_Int32 getSize() const throw(); + /// @throws css::io::BufferSizeExceededException void forgetFromStart(sal_Int32 nBytesToForget) throw(css::io::BufferSizeExceededException); private: - + /// @throws css::io::BufferSizeExceededException void resizeBuffer(sal_Int32 nMinSize) throw(css::io::BufferSizeExceededException); inline void checkInvariants() { assert( m_nBufferLen >= 0 ); @@ -70,10 +73,13 @@ class MemFIFO : private MemRingBuffer { public: + /// @throws css::io::BufferSizeExceededException void write( const Sequence<sal_Int8> &) throw( css::io::BufferSizeExceededException ); + /// @throws css::io::BufferSizeExceededException void read( Sequence<sal_Int8> & , sal_Int32 nBytesToRead ) throw( css::io::BufferSizeExceededException ); + /// @throws css::io::BufferSizeExceededException void skip( sal_Int32 nBytesToSkip ) throw( css::io::BufferSizeExceededException ); sal_Int32 getSize() const throw() |