New loplugin:dynexcspec: Add @throws documentation, io
Change-Id: I2d8b69454217bbbc9542cced8ce85269e3872662
This commit is contained in:
@@ -71,9 +71,13 @@ class OTextInputStream : public WeakImplHelper< XTextInputStream2, XServiceInfo
|
|||||||
bool mbReachedEOF;
|
bool mbReachedEOF;
|
||||||
|
|
||||||
void implResizeBuffer();
|
void implResizeBuffer();
|
||||||
|
/// @throws IOException
|
||||||
|
/// @throws RuntimeException
|
||||||
OUString implReadString( const Sequence< sal_Unicode >& Delimiters,
|
OUString implReadString( const Sequence< sal_Unicode >& Delimiters,
|
||||||
bool bRemoveDelimiter, bool bFindLineEnd )
|
bool bRemoveDelimiter, bool bFindLineEnd )
|
||||||
throw(IOException, RuntimeException);
|
throw(IOException, RuntimeException);
|
||||||
|
/// @throws IOException
|
||||||
|
/// @throws RuntimeException
|
||||||
sal_Int32 implReadNext() throw(IOException, RuntimeException);
|
sal_Int32 implReadNext() throw(IOException, RuntimeException);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@@ -61,6 +61,7 @@ class OTextOutputStream : public WeakImplHelper< XTextOutputStream2, XServiceInf
|
|||||||
rtl_UnicodeToTextContext mContextUnicode2Text;
|
rtl_UnicodeToTextContext mContextUnicode2Text;
|
||||||
|
|
||||||
Sequence<sal_Int8> implConvert( const OUString& rSource );
|
Sequence<sal_Int8> implConvert( const OUString& rSource );
|
||||||
|
/// @throws IOException
|
||||||
void checkOutputStream() throw(IOException);
|
void checkOutputStream() throw(IOException);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@@ -100,6 +100,7 @@ namespace io_acceptor
|
|||||||
|
|
||||||
struct BeingInAccept
|
struct BeingInAccept
|
||||||
{
|
{
|
||||||
|
/// @throws AlreadyAcceptingException
|
||||||
BeingInAccept( bool *pFlag,const OUString & sConnectionDescription ) throw( AlreadyAcceptingException)
|
BeingInAccept( bool *pFlag,const OUString & sConnectionDescription ) throw( AlreadyAcceptingException)
|
||||||
: m_pFlag( pFlag )
|
: m_pFlag( pFlag )
|
||||||
{
|
{
|
||||||
|
@@ -56,34 +56,42 @@ namespace io_TextOutputStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
namespace io_stm {
|
namespace io_stm {
|
||||||
|
/// @throws Exception
|
||||||
Reference< XInterface > SAL_CALL OPipeImpl_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
Reference< XInterface > SAL_CALL OPipeImpl_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
||||||
OUString OPipeImpl_getImplementationName();
|
OUString OPipeImpl_getImplementationName();
|
||||||
Sequence<OUString> OPipeImpl_getSupportedServiceNames();
|
Sequence<OUString> OPipeImpl_getSupportedServiceNames();
|
||||||
|
|
||||||
|
/// @throws Exception
|
||||||
Reference< XInterface > SAL_CALL ODataInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
Reference< XInterface > SAL_CALL ODataInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
||||||
OUString ODataInputStream_getImplementationName();
|
OUString ODataInputStream_getImplementationName();
|
||||||
Sequence<OUString> ODataInputStream_getSupportedServiceNames();
|
Sequence<OUString> ODataInputStream_getSupportedServiceNames();
|
||||||
|
|
||||||
|
/// @throws Exception
|
||||||
Reference< XInterface > SAL_CALL ODataOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
Reference< XInterface > SAL_CALL ODataOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
||||||
OUString ODataOutputStream_getImplementationName();
|
OUString ODataOutputStream_getImplementationName();
|
||||||
Sequence<OUString> ODataOutputStream_getSupportedServiceNames();
|
Sequence<OUString> ODataOutputStream_getSupportedServiceNames();
|
||||||
|
|
||||||
|
/// @throws Exception
|
||||||
Reference< XInterface > SAL_CALL OMarkableOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
Reference< XInterface > SAL_CALL OMarkableOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
||||||
OUString OMarkableOutputStream_getImplementationName();
|
OUString OMarkableOutputStream_getImplementationName();
|
||||||
Sequence<OUString> OMarkableOutputStream_getSupportedServiceNames();
|
Sequence<OUString> OMarkableOutputStream_getSupportedServiceNames();
|
||||||
|
|
||||||
|
/// @throws Exception
|
||||||
Reference< XInterface > SAL_CALL OMarkableInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
Reference< XInterface > SAL_CALL OMarkableInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
||||||
OUString OMarkableInputStream_getImplementationName() ;
|
OUString OMarkableInputStream_getImplementationName() ;
|
||||||
Sequence<OUString> OMarkableInputStream_getSupportedServiceNames();
|
Sequence<OUString> OMarkableInputStream_getSupportedServiceNames();
|
||||||
|
|
||||||
|
/// @throws Exception
|
||||||
Reference< XInterface > SAL_CALL OObjectOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw(Exception);
|
Reference< XInterface > SAL_CALL OObjectOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw(Exception);
|
||||||
OUString OObjectOutputStream_getImplementationName();
|
OUString OObjectOutputStream_getImplementationName();
|
||||||
Sequence<OUString> OObjectOutputStream_getSupportedServiceNames();
|
Sequence<OUString> OObjectOutputStream_getSupportedServiceNames();
|
||||||
|
|
||||||
|
/// @throws Exception
|
||||||
Reference< XInterface > SAL_CALL OObjectInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw(Exception);
|
Reference< XInterface > SAL_CALL OObjectInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw(Exception);
|
||||||
OUString OObjectInputStream_getImplementationName() ;
|
OUString OObjectInputStream_getImplementationName() ;
|
||||||
Sequence<OUString> OObjectInputStream_getSupportedServiceNames();
|
Sequence<OUString> OObjectInputStream_getSupportedServiceNames();
|
||||||
|
|
||||||
|
/// @throws Exception
|
||||||
Reference< XInterface > SAL_CALL OPumpImpl_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
Reference< XInterface > SAL_CALL OPumpImpl_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
|
||||||
OUString OPumpImpl_getImplementationName();
|
OUString OPumpImpl_getImplementationName();
|
||||||
Sequence<OUString> OPumpImpl_getSupportedServiceNames();
|
Sequence<OUString> OPumpImpl_getSupportedServiceNames();
|
||||||
|
@@ -130,6 +130,8 @@ public: // XServiceInfo
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
// helper methods
|
// helper methods
|
||||||
|
/// @throws NotConnectedException
|
||||||
|
/// @throws BufferSizeExceededException
|
||||||
void checkMarksAndFlush() throw( NotConnectedException, BufferSizeExceededException);
|
void checkMarksAndFlush() throw( NotConnectedException, BufferSizeExceededException);
|
||||||
|
|
||||||
Reference< XConnectable > m_succ;
|
Reference< XConnectable > m_succ;
|
||||||
|
@@ -40,15 +40,18 @@ public:
|
|||||||
* overwrites data at given position. Size is automatically extended, when
|
* overwrites data at given position. Size is automatically extended, when
|
||||||
* data is written beyond end.
|
* data is written beyond end.
|
||||||
***/
|
***/
|
||||||
|
/// @throws css::io::BufferSizeExceededException
|
||||||
void writeAt( sal_Int32 nPos, const Sequence<sal_Int8> &)
|
void writeAt( sal_Int32 nPos, const Sequence<sal_Int8> &)
|
||||||
throw(css::io::BufferSizeExceededException);
|
throw(css::io::BufferSizeExceededException);
|
||||||
|
/// @throws css::io::BufferSizeExceededException
|
||||||
void readAt( sal_Int32 nPos, Sequence<sal_Int8> & , sal_Int32 nBytesToRead ) const
|
void readAt( sal_Int32 nPos, Sequence<sal_Int8> & , sal_Int32 nBytesToRead ) const
|
||||||
throw(css::io::BufferSizeExceededException);
|
throw(css::io::BufferSizeExceededException);
|
||||||
sal_Int32 getSize() const throw();
|
sal_Int32 getSize() const throw();
|
||||||
|
/// @throws css::io::BufferSizeExceededException
|
||||||
void forgetFromStart(sal_Int32 nBytesToForget) throw(css::io::BufferSizeExceededException);
|
void forgetFromStart(sal_Int32 nBytesToForget) throw(css::io::BufferSizeExceededException);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/// @throws css::io::BufferSizeExceededException
|
||||||
void resizeBuffer(sal_Int32 nMinSize) throw(css::io::BufferSizeExceededException);
|
void resizeBuffer(sal_Int32 nMinSize) throw(css::io::BufferSizeExceededException);
|
||||||
inline void checkInvariants() {
|
inline void checkInvariants() {
|
||||||
assert( m_nBufferLen >= 0 );
|
assert( m_nBufferLen >= 0 );
|
||||||
@@ -70,10 +73,13 @@ class MemFIFO :
|
|||||||
private MemRingBuffer
|
private MemRingBuffer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/// @throws css::io::BufferSizeExceededException
|
||||||
void write( const Sequence<sal_Int8> &)
|
void write( const Sequence<sal_Int8> &)
|
||||||
throw( css::io::BufferSizeExceededException );
|
throw( css::io::BufferSizeExceededException );
|
||||||
|
/// @throws css::io::BufferSizeExceededException
|
||||||
void read( Sequence<sal_Int8> & , sal_Int32 nBytesToRead )
|
void read( Sequence<sal_Int8> & , sal_Int32 nBytesToRead )
|
||||||
throw( css::io::BufferSizeExceededException );
|
throw( css::io::BufferSizeExceededException );
|
||||||
|
/// @throws css::io::BufferSizeExceededException
|
||||||
void skip( sal_Int32 nBytesToSkip )
|
void skip( sal_Int32 nBytesToSkip )
|
||||||
throw( css::io::BufferSizeExceededException );
|
throw( css::io::BufferSizeExceededException );
|
||||||
sal_Int32 getSize() const throw()
|
sal_Int32 getSize() const throw()
|
||||||
|
Reference in New Issue
Block a user