You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/07/02 21:04:50 UTC

svn commit: r960088 [2/9] - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main: activemq/cmsutil/ activemq/commands/ activemq/core/ activemq/io/ activemq/transport/failover/ activemq/transport/mock/ activemq/wireformat/stomp/ decaf/internal/io/ deca...

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketFactory.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketFactory.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketFactory.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketFactory.cpp Fri Jul  2 19:04:44 2010
@@ -67,7 +67,7 @@ std::vector<std::string> OpenSSLSocketFa
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Socket* OpenSSLSocketFactory::createSocket() throw( decaf::io::IOException ) {
+Socket* OpenSSLSocketFactory::createSocket() {
 
     try{
 
@@ -86,8 +86,7 @@ Socket* OpenSSLSocketFactory::createSock
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Socket* OpenSSLSocketFactory::createSocket( const decaf::net::InetAddress* host, int port )
-    throw( decaf::io::IOException, decaf::net::UnknownHostException ) {
+Socket* OpenSSLSocketFactory::createSocket( const decaf::net::InetAddress* host, int port ) {
 
     try{
 
@@ -108,8 +107,7 @@ Socket* OpenSSLSocketFactory::createSock
 
 ////////////////////////////////////////////////////////////////////////////////
 Socket* OpenSSLSocketFactory::createSocket( const decaf::net::InetAddress* host, int port,
-                                            const decaf::net::InetAddress* ifAddress, int localPort )
-    throw( decaf::io::IOException, decaf::net::UnknownHostException ) {
+                                            const decaf::net::InetAddress* ifAddress, int localPort ) {
 
     try{
 
@@ -130,8 +128,7 @@ Socket* OpenSSLSocketFactory::createSock
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Socket* OpenSSLSocketFactory::createSocket( const std::string& hostname, int port )
-    throw( decaf::io::IOException, decaf::net::UnknownHostException ) {
+Socket* OpenSSLSocketFactory::createSocket( const std::string& hostname, int port ) {
 
     try{
 
@@ -152,8 +149,7 @@ Socket* OpenSSLSocketFactory::createSock
 
 ////////////////////////////////////////////////////////////////////////////////
 Socket* OpenSSLSocketFactory::createSocket( const std::string& hostname, int port,
-                                            const InetAddress* ifAddress, int localPort )
-    throw( decaf::io::IOException, decaf::net::UnknownHostException ) {
+                                            const InetAddress* ifAddress, int localPort ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketFactory.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketFactory.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketFactory.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketFactory.h Fri Jul  2 19:04:44 2010
@@ -49,33 +49,29 @@ namespace openssl {
         /**
          * {@inheritDoc}
          */
-        virtual decaf::net::Socket* createSocket() throw( decaf::io::IOException );
+        virtual decaf::net::Socket* createSocket();
 
         /**
          * {@inheritDoc}
          */
-        virtual decaf::net::Socket* createSocket( const decaf::net::InetAddress* host, int port )
-            throw( decaf::io::IOException, decaf::net::UnknownHostException );
+        virtual decaf::net::Socket* createSocket( const decaf::net::InetAddress* host, int port );
 
         /**
          * {@inheritDoc}
          */
         virtual decaf::net::Socket* createSocket( const decaf::net::InetAddress* host, int port,
-                                                  const decaf::net::InetAddress* ifAddress, int localPort )
-            throw( decaf::io::IOException, decaf::net::UnknownHostException );
+                                                  const decaf::net::InetAddress* ifAddress, int localPort );
 
         /**
          * {@inheritDoc}
          */
-        virtual decaf::net::Socket* createSocket( const std::string& hostname, int port )
-            throw( decaf::io::IOException, decaf::net::UnknownHostException );
+        virtual decaf::net::Socket* createSocket( const std::string& hostname, int port );
 
         /**
          * {@inheritDoc}
          */
         virtual decaf::net::Socket* createSocket( const std::string& name, int port,
-                                                  const decaf::net::InetAddress* ifAddress, int localPort )
-            throw( decaf::io::IOException, decaf::net::UnknownHostException );
+                                                  const decaf::net::InetAddress* ifAddress, int localPort );
 
         /**
          * {@inheritDoc}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketInputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketInputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketInputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketInputStream.cpp Fri Jul  2 19:04:44 2010
@@ -43,7 +43,7 @@ OpenSSLSocketInputStream::~OpenSSLSocket
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void OpenSSLSocketInputStream::close() throw( decaf::io::IOException ) {
+void OpenSSLSocketInputStream::close() {
 
     if( this->closed ) {
         return;
@@ -58,7 +58,7 @@ void OpenSSLSocketInputStream::close() t
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int OpenSSLSocketInputStream::available() const throw ( io::IOException ){
+int OpenSSLSocketInputStream::available() const {
 
     if( this->closed ){
         throw IOException(
@@ -69,7 +69,7 @@ int OpenSSLSocketInputStream::available(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int OpenSSLSocketInputStream::doReadByte() throw ( IOException ){
+int OpenSSLSocketInputStream::doReadByte() {
 
     if( this->closed ){
         throw IOException(
@@ -88,10 +88,7 @@ int OpenSSLSocketInputStream::doReadByte
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int OpenSSLSocketInputStream::doReadArrayBounded( unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::IndexOutOfBoundsException,
-            decaf::lang::exceptions::NullPointerException ) {
+int OpenSSLSocketInputStream::doReadArrayBounded( unsigned char* buffer, int size, int offset, int length ) {
 
     if( closed ){
         throw IOException(
@@ -114,8 +111,7 @@ int OpenSSLSocketInputStream::doReadArra
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long OpenSSLSocketInputStream::skip( long long num )
-    throw ( IOException, UnsupportedOperationException ) {
+long long OpenSSLSocketInputStream::skip( long long num ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketInputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketInputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketInputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketInputStream.h Fri Jul  2 19:04:44 2010
@@ -50,7 +50,7 @@ namespace openssl {
         /**
          * {@inheritDoc}
          */
-        virtual int available() const throw ( decaf::io::IOException );
+        virtual int available() const;
 
         /**
          * Close - does nothing.  It is the responsibility of the owner
@@ -58,25 +58,20 @@ namespace openssl {
          *
          * {@inheritDoc}
          */
-        virtual void close() throw( decaf::io::IOException );
+        virtual void close();
 
         /**
          * Not supported.
          *
          * {@inheritDoc}
          */
-        virtual long long skip( long long num )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::UnsupportedOperationException );
+        virtual long long skip( long long num );
 
     protected:
 
-        virtual int doReadByte() throw ( io::IOException );
+        virtual int doReadByte();
 
-        virtual int doReadArrayBounded( unsigned char* buffer, int size, int offset, int length )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException,
-                    decaf::lang::exceptions::NullPointerException );
+        virtual int doReadArrayBounded( unsigned char* buffer, int size, int offset, int length );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketOutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketOutputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketOutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketOutputStream.cpp Fri Jul  2 19:04:44 2010
@@ -43,7 +43,7 @@ OpenSSLSocketOutputStream::~OpenSSLSocke
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void OpenSSLSocketOutputStream::close() throw( decaf::io::IOException ) {
+void OpenSSLSocketOutputStream::close() {
 
     if( this->closed ) {
         return;
@@ -58,7 +58,7 @@ void OpenSSLSocketOutputStream::close() 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void OpenSSLSocketOutputStream::doWriteByte( unsigned char c ) throw ( IOException ) {
+void OpenSSLSocketOutputStream::doWriteByte( unsigned char c ) {
 
     try{
 
@@ -70,10 +70,7 @@ void OpenSSLSocketOutputStream::doWriteB
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void OpenSSLSocketOutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+void OpenSSLSocketOutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketOutputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketOutputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketOutputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocketOutputStream.h Fri Jul  2 19:04:44 2010
@@ -47,16 +47,13 @@ namespace openssl {
 
         virtual ~OpenSSLSocketOutputStream();
 
-        virtual void close() throw( decaf::io::IOException );
+        virtual void close();
 
     protected:
 
-        virtual void doWriteByte( unsigned char c ) throw ( decaf::io::IOException );
+        virtual void doWriteByte( unsigned char c );
 
-        virtual void doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::NullPointerException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual void doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocket.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocket.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocket.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocket.cpp Fri Jul  2 19:04:44 2010
@@ -60,18 +60,17 @@ using namespace decaf::lang;
 using namespace decaf::lang::exceptions;
 
 ////////////////////////////////////////////////////////////////////////////////
-TcpSocket::TcpSocket() throw ( SocketException )
-  : socketHandle( NULL ),
-    localAddress( NULL ),
-    remoteAddress( NULL ),
-    inputStream( NULL ),
-    outputStream( NULL ),
-    inputShutdown( false ),
-    outputShutdown( false ),
-    closed( false ),
-    trafficClass( 0 ),
-    soTimeout( -1 ),
-    soLinger( -1 ) {
+TcpSocket::TcpSocket() : socketHandle( NULL ),
+                         localAddress( NULL ),
+                         remoteAddress( NULL ),
+                         inputStream( NULL ),
+                         outputStream( NULL ),
+                         inputShutdown( false ),
+                         outputShutdown( false ),
+                         closed( false ),
+                         trafficClass( 0 ),
+                         soTimeout( -1 ),
+                         soLinger( -1 ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -99,7 +98,7 @@ TcpSocket::~TcpSocket() {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocket::create() throw( decaf::io::IOException ) {
+void TcpSocket::create() {
 
     try{
 
@@ -123,8 +122,7 @@ void TcpSocket::create() throw( decaf::i
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocket::accept( SocketImpl* socket )
-    throw( decaf::io::IOException ) {
+void TcpSocket::accept( SocketImpl* socket ) {
 
     try{
 
@@ -159,7 +157,7 @@ void TcpSocket::accept( SocketImpl* sock
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-InputStream* TcpSocket::getInputStream() throw( IOException ) {
+InputStream* TcpSocket::getInputStream() {
 
     if( this->socketHandle == NULL || this->closed ) {
         throw IOException( __FILE__, __LINE__, "The Socket is not Connected." );
@@ -183,7 +181,7 @@ InputStream* TcpSocket::getInputStream()
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-OutputStream* TcpSocket::getOutputStream() throw( IOException ) {
+OutputStream* TcpSocket::getOutputStream() {
 
     if( this->socketHandle == NULL || this->closed ) {
         throw IOException( __FILE__, __LINE__, "The Socket is not Connected." );
@@ -207,8 +205,7 @@ OutputStream* TcpSocket::getOutputStream
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocket::bind( const std::string& ipaddress, int port )
-    throw( decaf::io::IOException ) {
+void TcpSocket::bind( const std::string& ipaddress, int port ) {
 
     try{
 
@@ -256,10 +253,7 @@ void TcpSocket::bind( const std::string&
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocket::connect( const std::string& hostname, int port, int timeout )
-    throw( decaf::io::IOException,
-           decaf::net::SocketException,
-           decaf::lang::exceptions::IllegalArgumentException ) {
+void TcpSocket::connect( const std::string& hostname, int port, int timeout ) {
 
     try{
 
@@ -339,7 +333,7 @@ std::string TcpSocket::getLocalAddress()
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocket::listen( int backlog ) throw( decaf::io::IOException ) {
+void TcpSocket::listen( int backlog ) {
 
     try{
 
@@ -364,7 +358,7 @@ void TcpSocket::listen( int backlog ) th
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int TcpSocket::available() throw( decaf::io::IOException ) {
+int TcpSocket::available() {
 
     if( isClosed() ){
         throw IOException(
@@ -428,7 +422,7 @@ int TcpSocket::available() throw( decaf:
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocket::close() throw( decaf::io::IOException ) {
+void TcpSocket::close() {
 
     try{
 
@@ -468,7 +462,7 @@ void TcpSocket::close() throw( decaf::io
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocket::shutdownInput() throw( decaf::io::IOException ) {
+void TcpSocket::shutdownInput() {
 
     if( isClosed() ){
         throw IOException(
@@ -480,7 +474,7 @@ void TcpSocket::shutdownInput() throw( d
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocket::shutdownOutput() throw( decaf::io::IOException ) {
+void TcpSocket::shutdownOutput() {
 
     if( isClosed() ){
         throw IOException(
@@ -492,7 +486,7 @@ void TcpSocket::shutdownOutput() throw( 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int TcpSocket::getOption( int option ) const throw( decaf::io::IOException ) {
+int TcpSocket::getOption( int option ) const {
 
     try{
 
@@ -549,7 +543,7 @@ int TcpSocket::getOption( int option ) c
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocket::setOption( int option, int value ) throw( decaf::io::IOException ) {
+void TcpSocket::setOption( int option, int value ) {
 
     try{
 
@@ -600,7 +594,7 @@ void TcpSocket::setOption( int option, i
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocket::checkResult( apr_status_t value ) const throw ( SocketException ) {
+void TcpSocket::checkResult( apr_status_t value ) const {
 
     if( value != APR_SUCCESS ){
         throw SocketException(
@@ -610,10 +604,7 @@ void TcpSocket::checkResult( apr_status_
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int TcpSocket::read( unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::IndexOutOfBoundsException,
-            decaf::lang::exceptions::NullPointerException ) {
+int TcpSocket::read( unsigned char* buffer, int size, int offset, int length ) {
 
     try{
         if( this->isClosed() ){
@@ -685,10 +676,7 @@ int TcpSocket::read( unsigned char* buff
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocket::write( const unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::IndexOutOfBoundsException,
-            decaf::lang::exceptions::NullPointerException ) {
+void TcpSocket::write( const unsigned char* buffer, int size, int offset, int length ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocket.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocket.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocket.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocket.h Fri Jul  2 19:04:44 2010
@@ -126,7 +126,7 @@ namespace tcp {
          *
          * @throws SocketException thrown if an error occurs while creating the Socket.
          */
-        TcpSocket() throw ( decaf::net::SocketException );
+        TcpSocket();
 
         /**
          * Releases the socket handle but not gracefully shut down the connection.
@@ -163,74 +163,67 @@ namespace tcp {
         /**
          * {@inheritDoc}
          */
-        virtual void create() throw( decaf::io::IOException );
+        virtual void create();
 
         /**
          * {@inheritDoc}
          */
-        virtual void accept( SocketImpl* socket )
-            throw( decaf::io::IOException );
+        virtual void accept( SocketImpl* socket );
 
         /**
          * {@inheritDoc}
          */
-        virtual void bind( const std::string& ipaddress, int port )
-            throw( decaf::io::IOException );
+        virtual void bind( const std::string& ipaddress, int port );
 
         /**
          * {@inheritDoc}
          */
-        virtual void connect( const std::string& hostname, int port, int timeout )
-            throw( decaf::io::IOException,
-                   decaf::net::SocketException,
-                   decaf::lang::exceptions::IllegalArgumentException );
+        virtual void connect( const std::string& hostname, int port, int timeout );
 
         /**
          * {@inheritDoc}
          */
-        virtual void listen( int backlog ) throw( decaf::io::IOException );
+        virtual void listen( int backlog );
 
         /**
          * {@inheritDoc}
          */
-        virtual decaf::io::InputStream* getInputStream()
-            throw( decaf::io::IOException );
+        virtual decaf::io::InputStream* getInputStream();
 
         /**
          * {@inheritDoc}
          */
-        virtual decaf::io::OutputStream* getOutputStream()
-            throw( decaf::io::IOException );
+        virtual decaf::io::OutputStream* getOutputStream();
 
         /**
          * {@inheritDoc}
          */
-        virtual int available() throw( decaf::io::IOException );
+        virtual int available();
 
         /**
          * {@inheritDoc}
          */
-        virtual void close() throw( decaf::io::IOException );
+        virtual void close();
 
         /**
          * {@inheritDoc}
          */
-        virtual void shutdownInput() throw( decaf::io::IOException );
+        virtual void shutdownInput();
 
         /**
          * {@inheritDoc}
          */
-        virtual void shutdownOutput() throw( decaf::io::IOException );
+        virtual void shutdownOutput();
 
         /**
          * {@inheritDoc}
          */
-        virtual int getOption( int option ) const throw( decaf::io::IOException );
+        virtual int getOption( int option ) const;
 
         /**
          * {@inheritDoc}
          */
-        virtual void setOption( int option, int value ) throw( decaf::io::IOException );
+        virtual void setOption( int option, int value );
 
     public:
 
@@ -252,10 +245,7 @@ namespace tcp {
          * @throw NullPointerException if buffer is Null.
          * @throw IndexOutOfBoundsException if offset + length is greater than buffer size.
          */
-        int read( unsigned char* buffer, int size, int offset, int length )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException,
-                    decaf::lang::exceptions::NullPointerException );
+        int read( unsigned char* buffer, int size, int offset, int length );
 
         /**
          * Writes the specified data in the passed in buffer to the Socket.
@@ -273,14 +263,11 @@ namespace tcp {
          * @throw NullPointerException if buffer is Null.
          * @throw IndexOutOfBoundsException if offset + length is greater than buffer size.
          */
-        void write( const unsigned char* buffer, int size, int offset, int length )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException,
-                    decaf::lang::exceptions::NullPointerException );
+        void write( const unsigned char* buffer, int size, int offset, int length );
 
     protected:
 
-        void checkResult( apr_status_t value ) const throw( decaf::net::SocketException );
+        void checkResult( apr_status_t value ) const;
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketInputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketInputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketInputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketInputStream.cpp Fri Jul  2 19:04:44 2010
@@ -47,7 +47,7 @@ TcpSocketInputStream::~TcpSocketInputStr
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocketInputStream::close() throw( decaf::io::IOException ) {
+void TcpSocketInputStream::close() {
 
     if( this->closed ) {
         return;
@@ -62,7 +62,7 @@ void TcpSocketInputStream::close() throw
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int TcpSocketInputStream::available() const throw ( io::IOException ){
+int TcpSocketInputStream::available() const {
 
     if( this->closed ){
         throw IOException(
@@ -73,7 +73,7 @@ int TcpSocketInputStream::available() co
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int TcpSocketInputStream::doReadByte() throw ( IOException ){
+int TcpSocketInputStream::doReadByte() {
 
     if( this->closed ){
         throw IOException(
@@ -92,10 +92,7 @@ int TcpSocketInputStream::doReadByte() t
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int TcpSocketInputStream::doReadArrayBounded( unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::IndexOutOfBoundsException,
-            decaf::lang::exceptions::NullPointerException ) {
+int TcpSocketInputStream::doReadArrayBounded( unsigned char* buffer, int size, int offset, int length ) {
 
     if( closed ){
         throw IOException(
@@ -118,8 +115,7 @@ int TcpSocketInputStream::doReadArrayBou
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long TcpSocketInputStream::skip( long long num )
-    throw ( IOException, UnsupportedOperationException ) {
+long long TcpSocketInputStream::skip( long long num ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketInputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketInputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketInputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketInputStream.h Fri Jul  2 19:04:44 2010
@@ -60,7 +60,7 @@ namespace tcp {
         /**
          * {@inheritDoc}
          */
-        virtual int available() const throw ( decaf::io::IOException );
+        virtual int available() const;
 
         /**
          * Close - does nothing.  It is the responsibility of the owner
@@ -68,25 +68,20 @@ namespace tcp {
          *
          * {@inheritDoc}
          */
-        virtual void close() throw( decaf::io::IOException );
+        virtual void close();
 
         /**
          * Not supported.
          *
          * {@inheritDoc}
          */
-        virtual long long skip( long long num )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::UnsupportedOperationException );
+        virtual long long skip( long long num );
 
     protected:
 
-        virtual int doReadByte() throw ( io::IOException );
+        virtual int doReadByte();
 
-        virtual int doReadArrayBounded( unsigned char* buffer, int size, int offset, int length )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException,
-                    decaf::lang::exceptions::NullPointerException );
+        virtual int doReadArrayBounded( unsigned char* buffer, int size, int offset, int length );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketOutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketOutputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketOutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketOutputStream.cpp Fri Jul  2 19:04:44 2010
@@ -49,7 +49,7 @@ TcpSocketOutputStream::~TcpSocketOutputS
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocketOutputStream::close() throw( decaf::io::IOException ) {
+void TcpSocketOutputStream::close() {
 
     if( this->closed ) {
         return;
@@ -64,7 +64,7 @@ void TcpSocketOutputStream::close() thro
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocketOutputStream::doWriteByte( unsigned char c ) throw ( IOException ) {
+void TcpSocketOutputStream::doWriteByte( unsigned char c ) {
 
     try{
 
@@ -76,10 +76,7 @@ void TcpSocketOutputStream::doWriteByte(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void TcpSocketOutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+void TcpSocketOutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketOutputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketOutputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketOutputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/tcp/TcpSocketOutputStream.h Fri Jul  2 19:04:44 2010
@@ -52,16 +52,13 @@ namespace tcp {
 
         virtual ~TcpSocketOutputStream();
 
-        virtual void close() throw( decaf::io::IOException );
+        virtual void close();
 
     protected:
 
-        virtual void doWriteByte( unsigned char c ) throw ( decaf::io::IOException );
+        virtual void doWriteByte( unsigned char c );
 
-        virtual void doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::NullPointerException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual void doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/BufferFactory.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/BufferFactory.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/BufferFactory.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/BufferFactory.cpp Fri Jul  2 19:04:44 2010
@@ -33,8 +33,7 @@ using namespace decaf::lang;
 using namespace decaf::lang::exceptions;
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteBuffer* BufferFactory::createByteBuffer( int capacity )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+ByteBuffer* BufferFactory::createByteBuffer( int capacity ) {
 
     try{
         return new ByteArrayBuffer( capacity );
@@ -44,9 +43,7 @@ ByteBuffer* BufferFactory::createByteBuf
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteBuffer* BufferFactory::createByteBuffer( unsigned char* buffer, int size, int offset, int length )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) {
+ByteBuffer* BufferFactory::createByteBuffer( unsigned char* buffer, int size, int offset, int length ) {
 
     try{
         return new ByteArrayBuffer( buffer, size, offset, length, false );
@@ -68,8 +65,7 @@ ByteBuffer* BufferFactory::createByteBuf
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer* BufferFactory::createCharBuffer( int capacity )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+CharBuffer* BufferFactory::createCharBuffer( int capacity ) {
 
     try{
         return new CharArrayBuffer( capacity );
@@ -79,9 +75,7 @@ CharBuffer* BufferFactory::createCharBuf
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer* BufferFactory::createCharBuffer( char* buffer, int size, int offset, int length )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) {
+CharBuffer* BufferFactory::createCharBuffer( char* buffer, int size, int offset, int length ) {
 
     try{
         return new CharArrayBuffer( buffer, size, offset, length, false );
@@ -103,8 +97,7 @@ CharBuffer* BufferFactory::createCharBuf
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer* BufferFactory::createDoubleBuffer( int capacity )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+DoubleBuffer* BufferFactory::createDoubleBuffer( int capacity ) {
 
     try{
         return new DoubleArrayBuffer( capacity );
@@ -114,9 +107,7 @@ DoubleBuffer* BufferFactory::createDoubl
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer* BufferFactory::createDoubleBuffer( double* buffer, int size, int offset, int length )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) {
+DoubleBuffer* BufferFactory::createDoubleBuffer( double* buffer, int size, int offset, int length ) {
 
     try{
         return new DoubleArrayBuffer( buffer, size, offset, length, false );
@@ -138,8 +129,7 @@ DoubleBuffer* BufferFactory::createDoubl
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-FloatBuffer* BufferFactory::createFloatBuffer( int capacity )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+FloatBuffer* BufferFactory::createFloatBuffer( int capacity ) {
 
     try{
         return new FloatArrayBuffer( capacity );
@@ -149,9 +139,7 @@ FloatBuffer* BufferFactory::createFloatB
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-FloatBuffer* BufferFactory::createFloatBuffer( float* buffer, int size, int offset, int length )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) {
+FloatBuffer* BufferFactory::createFloatBuffer( float* buffer, int size, int offset, int length ) {
 
     try{
         return new FloatArrayBuffer( buffer, size, offset, length, false );
@@ -173,8 +161,7 @@ FloatBuffer* BufferFactory::createFloatB
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-LongBuffer* BufferFactory::createLongBuffer( int capacity )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+LongBuffer* BufferFactory::createLongBuffer( int capacity ) {
 
     try{
         return new LongArrayBuffer( capacity );
@@ -184,9 +171,7 @@ LongBuffer* BufferFactory::createLongBuf
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-LongBuffer* BufferFactory::createLongBuffer( long long* buffer, int size,  int offset, int length )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) {
+LongBuffer* BufferFactory::createLongBuffer( long long* buffer, int size,  int offset, int length ) {
 
     try{
         return new LongArrayBuffer( buffer, size, offset, length, false );
@@ -208,8 +193,7 @@ LongBuffer* BufferFactory::createLongBuf
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-IntBuffer* BufferFactory::createIntBuffer( int capacity )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+IntBuffer* BufferFactory::createIntBuffer( int capacity ) {
 
     try{
         return new IntArrayBuffer( capacity );
@@ -219,9 +203,7 @@ IntBuffer* BufferFactory::createIntBuffe
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-IntBuffer* BufferFactory::createIntBuffer( int* buffer, int size, int offset, int length )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) {
+IntBuffer* BufferFactory::createIntBuffer( int* buffer, int size, int offset, int length ) {
 
     try{
         return new IntArrayBuffer( buffer, size, offset, length, false );
@@ -243,8 +225,7 @@ IntBuffer* BufferFactory::createIntBuffe
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ShortBuffer* BufferFactory::createShortBuffer( int capacity )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+ShortBuffer* BufferFactory::createShortBuffer( int capacity ) {
 
     try{
         return new ShortArrayBuffer( capacity );
@@ -254,9 +235,7 @@ ShortBuffer* BufferFactory::createShortB
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ShortBuffer* BufferFactory::createShortBuffer( short* buffer, int size, int offset, int length )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) {
+ShortBuffer* BufferFactory::createShortBuffer( short* buffer, int size, int offset, int length ) {
 
     try{
         return new ShortArrayBuffer( buffer, size, offset, length, false );

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/BufferFactory.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/BufferFactory.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/BufferFactory.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/BufferFactory.h Fri Jul  2 19:04:44 2010
@@ -54,8 +54,7 @@ namespace nio{
          *
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::ByteBuffer* createByteBuffer( int capacity )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::ByteBuffer* createByteBuffer( int capacity );
 
         /**
          * Wraps the passed buffer with a new ByteBuffer.
@@ -81,9 +80,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
         static decaf::nio::ByteBuffer* createByteBuffer(
-                        unsigned char* buffer, int size, int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+                        unsigned char* buffer, int size, int offset, int length );
 
         /**
          * Wraps the passed STL Byte Vector in a ByteBuffer.
@@ -113,8 +110,7 @@ namespace nio{
          *
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::CharBuffer* createCharBuffer( int capacity )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::CharBuffer* createCharBuffer( int capacity );
 
         /**
          * Wraps the passed buffer with a new CharBuffer.
@@ -139,9 +135,7 @@ namespace nio{
          * @throws NullPointerException if the buffer given in Null.
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::CharBuffer* createCharBuffer( char* buffer, int size, int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::CharBuffer* createCharBuffer( char* buffer, int size, int offset, int length );
 
         /**
          * Wraps the passed STL Byte Vector in a CharBuffer.
@@ -171,8 +165,7 @@ namespace nio{
          *
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::DoubleBuffer* createDoubleBuffer( int capacity )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::DoubleBuffer* createDoubleBuffer( int capacity );
 
         /**
          * Wraps the passed buffer with a new DoubleBuffer.
@@ -197,9 +190,7 @@ namespace nio{
          * @throws NullPointerException if the buffer given in Null.
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::DoubleBuffer* createDoubleBuffer( double* buffer, int size, int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::DoubleBuffer* createDoubleBuffer( double* buffer, int size, int offset, int length );
 
         /**
          * Wraps the passed STL Double Vector in a DoubleBuffer.
@@ -229,8 +220,7 @@ namespace nio{
          *
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::FloatBuffer* createFloatBuffer( int capacity )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::FloatBuffer* createFloatBuffer( int capacity );
 
         /**
          * Wraps the passed buffer with a new FloatBuffer.
@@ -255,9 +245,7 @@ namespace nio{
          * @throws NullPointerException if the buffer given in Null.
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::FloatBuffer* createFloatBuffer( float* buffer, int size, int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::FloatBuffer* createFloatBuffer( float* buffer, int size, int offset, int length );
 
         /**
          * Wraps the passed STL Float Vector in a FloatBuffer.
@@ -284,8 +272,7 @@ namespace nio{
          *
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::LongBuffer* createLongBuffer( int capacity )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::LongBuffer* createLongBuffer( int capacity );
 
         /**
          * Wraps the passed buffer with a new LongBuffer.
@@ -310,9 +297,7 @@ namespace nio{
          * @throws NullPointerException if the buffer given in Null.
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::LongBuffer* createLongBuffer( long long* buffer, int size, int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::LongBuffer* createLongBuffer( long long* buffer, int size, int offset, int length );
 
         /**
          * Wraps the passed STL Long Vector in a LongBuffer.
@@ -342,8 +327,7 @@ namespace nio{
          *
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::IntBuffer* createIntBuffer( int capacity )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::IntBuffer* createIntBuffer( int capacity );
 
         /**
          * Wraps the passed buffer with a new IntBuffer.
@@ -368,9 +352,7 @@ namespace nio{
          * @throws NullPointerException if the buffer given in Null.
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::IntBuffer* createIntBuffer( int* buffer, int size,  int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::IntBuffer* createIntBuffer( int* buffer, int size,  int offset, int length );
 
         /**
          * Wraps the passed STL int Vector in a IntBuffer.
@@ -400,8 +382,7 @@ namespace nio{
          *
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::ShortBuffer* createShortBuffer( int capacity )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::ShortBuffer* createShortBuffer( int capacity );
 
         /**
          * Wraps the passed buffer with a new ShortBuffer.
@@ -426,9 +407,7 @@ namespace nio{
          * @throws NullPointerException if the buffer given in Null.
          * @throws IndexOutOfBoundsException if the capacity specified is negative.
          */
-        static decaf::nio::ShortBuffer* createShortBuffer( short* buffer, int size, int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        static decaf::nio::ShortBuffer* createShortBuffer( short* buffer, int size, int offset, int length );
 
         /**
          * Wraps the passed STL Short Vector in a ShortBuffer.

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/ByteArrayBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/ByteArrayBuffer.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/ByteArrayBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/ByteArrayBuffer.cpp Fri Jul  2 19:04:44 2010
@@ -30,8 +30,7 @@ using namespace decaf::lang::exceptions;
 using namespace decaf::internal::nio;
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer::ByteArrayBuffer( int size, bool readOnly )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) : decaf::nio::ByteBuffer( size ) {
+ByteArrayBuffer::ByteArrayBuffer( int size, bool readOnly ) : decaf::nio::ByteBuffer( size ) {
 
     // Allocate using the ByteArray, not read-only initially.  Take a reference to it.
     this->_array.reset( new ByteArrayAdapter( size ) );
@@ -41,9 +40,7 @@ ByteArrayBuffer::ByteArrayBuffer( int si
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer::ByteArrayBuffer( unsigned char* array, int size, int offset, int length, bool readOnly )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) :
+ByteArrayBuffer::ByteArrayBuffer( unsigned char* array, int size, int offset, int length, bool readOnly ) :
     decaf::nio::ByteBuffer( length ) {
 
     try{
@@ -71,9 +68,8 @@ ByteArrayBuffer::ByteArrayBuffer( unsign
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer::ByteArrayBuffer( const Pointer<ByteArrayAdapter>& array, int offset, int length, bool readOnly )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) : decaf::nio::ByteBuffer( length ) {
+ByteArrayBuffer::ByteArrayBuffer( const Pointer<ByteArrayAdapter>& array, int offset, int length, bool readOnly ) :
+    decaf::nio::ByteBuffer( length ) {
 
     try{
 
@@ -119,8 +115,7 @@ ByteArrayBuffer::~ByteArrayBuffer() {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-unsigned char* ByteArrayBuffer::array()
-    throw( decaf::nio::ReadOnlyBufferException, UnsupportedOperationException ) {
+unsigned char* ByteArrayBuffer::array() {
 
     try{
 
@@ -145,9 +140,7 @@ unsigned char* ByteArrayBuffer::array()
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int ByteArrayBuffer::arrayOffset() const
-    throw( decaf::nio::ReadOnlyBufferException,
-           lang::exceptions::UnsupportedOperationException ) {
+int ByteArrayBuffer::arrayOffset() const {
 
     try{
 
@@ -186,7 +179,7 @@ ByteArrayBuffer* ByteArrayBuffer::asRead
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::compact() throw( decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::compact() {
 
     try{
 
@@ -224,7 +217,7 @@ ByteArrayBuffer* ByteArrayBuffer::duplic
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-unsigned char ByteArrayBuffer::get() const throw( decaf::nio::BufferUnderflowException ) {
+unsigned char ByteArrayBuffer::get() const {
 
     try{
         return this->get( this->_position++ );
@@ -235,8 +228,7 @@ unsigned char ByteArrayBuffer::get() con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-unsigned char ByteArrayBuffer::get( int index ) const
-    throw ( lang::exceptions::IndexOutOfBoundsException ) {
+unsigned char ByteArrayBuffer::get( int index ) const {
 
     try{
 
@@ -254,7 +246,7 @@ unsigned char ByteArrayBuffer::get( int 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-double ByteArrayBuffer::getDouble() throw( decaf::nio::BufferUnderflowException ) {
+double ByteArrayBuffer::getDouble() {
 
     try{
 
@@ -267,8 +259,7 @@ double ByteArrayBuffer::getDouble() thro
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-double ByteArrayBuffer::getDouble( int index ) const
-    throw ( lang::exceptions::IndexOutOfBoundsException ) {
+double ByteArrayBuffer::getDouble( int index ) const {
 
     try{
 
@@ -281,7 +272,7 @@ double ByteArrayBuffer::getDouble( int i
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-float ByteArrayBuffer::getFloat() throw( decaf::nio::BufferUnderflowException ) {
+float ByteArrayBuffer::getFloat() {
 
     try{
 
@@ -294,8 +285,7 @@ float ByteArrayBuffer::getFloat() throw(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-float ByteArrayBuffer::getFloat( int index ) const
-    throw ( lang::exceptions::IndexOutOfBoundsException ) {
+float ByteArrayBuffer::getFloat( int index ) const {
 
     try{
 
@@ -308,7 +298,7 @@ float ByteArrayBuffer::getFloat( int ind
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long ByteArrayBuffer::getLong() throw( decaf::nio::BufferUnderflowException ) {
+long long ByteArrayBuffer::getLong() {
 
     try{
 
@@ -322,8 +312,7 @@ long long ByteArrayBuffer::getLong() thr
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long ByteArrayBuffer::getLong( int index ) const
-    throw ( lang::exceptions::IndexOutOfBoundsException ) {
+long long ByteArrayBuffer::getLong( int index ) const {
 
     try{
 
@@ -341,7 +330,7 @@ long long ByteArrayBuffer::getLong( int 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int ByteArrayBuffer::getInt() throw( decaf::nio::BufferUnderflowException )  {
+int ByteArrayBuffer::getInt() {
 
     try{
 
@@ -355,8 +344,7 @@ int ByteArrayBuffer::getInt() throw( dec
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int ByteArrayBuffer::getInt( int index ) const
-    throw ( lang::exceptions::IndexOutOfBoundsException ) {
+int ByteArrayBuffer::getInt( int index ) const {
 
     try{
 
@@ -374,7 +362,7 @@ int ByteArrayBuffer::getInt( int index )
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-short ByteArrayBuffer::getShort() throw( decaf::nio::BufferUnderflowException ) {
+short ByteArrayBuffer::getShort() {
 
     try{
 
@@ -388,8 +376,7 @@ short ByteArrayBuffer::getShort() throw(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-short ByteArrayBuffer::getShort( int index ) const
-    throw ( lang::exceptions::IndexOutOfBoundsException )  {
+short ByteArrayBuffer::getShort( int index ) const {
 
     try{
 
@@ -407,8 +394,7 @@ short ByteArrayBuffer::getShort( int ind
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::put( unsigned char value )
-    throw( decaf::nio::BufferOverflowException, decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::put( unsigned char value ) {
 
     try{
 
@@ -422,9 +408,7 @@ ByteArrayBuffer& ByteArrayBuffer::put( u
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::put( int index, unsigned char value )
-    throw( lang::exceptions::IndexOutOfBoundsException,
-           decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::put( int index, unsigned char value ) {
 
     try{
 
@@ -451,8 +435,7 @@ ByteArrayBuffer& ByteArrayBuffer::put( i
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putChar( char value )
-    throw( decaf::nio::BufferOverflowException, decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putChar( char value ) {
 
     try{
 
@@ -466,9 +449,7 @@ ByteArrayBuffer& ByteArrayBuffer::putCha
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putChar( int index, char value )
-    throw( lang::exceptions::IndexOutOfBoundsException,
-           decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putChar( int index, char value ) {
 
     try{
 
@@ -482,8 +463,7 @@ ByteArrayBuffer& ByteArrayBuffer::putCha
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putDouble( double value )
-    throw( decaf::nio::BufferOverflowException, decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putDouble( double value ) {
 
     try{
 
@@ -498,9 +478,7 @@ ByteArrayBuffer& ByteArrayBuffer::putDou
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putDouble( int index, double value )
-    throw( lang::exceptions::IndexOutOfBoundsException,
-           decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putDouble( int index, double value ) {
 
     try{
 
@@ -514,8 +492,7 @@ ByteArrayBuffer& ByteArrayBuffer::putDou
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putFloat( float value )
-    throw( decaf::nio::BufferOverflowException, decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putFloat( float value ) {
 
     try{
 
@@ -530,9 +507,7 @@ ByteArrayBuffer& ByteArrayBuffer::putFlo
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putFloat( int index, float value )
-    throw( lang::exceptions::IndexOutOfBoundsException,
-           decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putFloat( int index, float value ) {
 
     try{
 
@@ -546,8 +521,7 @@ ByteArrayBuffer& ByteArrayBuffer::putFlo
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putLong( long long value )
-    throw( decaf::nio::BufferOverflowException, decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putLong( long long value ) {
 
     try{
 
@@ -562,9 +536,7 @@ ByteArrayBuffer& ByteArrayBuffer::putLon
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putLong( int index, long long value )
-    throw( lang::exceptions::IndexOutOfBoundsException,
-           decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putLong( int index, long long value ) {
 
     try{
 
@@ -585,8 +557,7 @@ ByteArrayBuffer& ByteArrayBuffer::putLon
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putInt( int value )
-    throw( decaf::nio::BufferOverflowException, decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putInt( int value ) {
 
     try{
 
@@ -601,9 +572,7 @@ ByteArrayBuffer& ByteArrayBuffer::putInt
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putInt( int index, int value )
-    throw( lang::exceptions::IndexOutOfBoundsException,
-           decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putInt( int index, int value ) {
 
     try{
 
@@ -624,8 +593,7 @@ ByteArrayBuffer& ByteArrayBuffer::putInt
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putShort( short value )
-    throw( decaf::nio::BufferOverflowException, decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putShort( short value ) {
 
     try{
 
@@ -640,9 +608,7 @@ ByteArrayBuffer& ByteArrayBuffer::putSho
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayBuffer& ByteArrayBuffer::putShort( int index, short value )
-    throw( lang::exceptions::IndexOutOfBoundsException,
-           decaf::nio::ReadOnlyBufferException ) {
+ByteArrayBuffer& ByteArrayBuffer::putShort( int index, short value ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/ByteArrayBuffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/ByteArrayBuffer.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/ByteArrayBuffer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/ByteArrayBuffer.h Fri Jul  2 19:04:44 2010
@@ -130,8 +130,7 @@ namespace nio{
          *
          * @throws IllegalArguementException if the capacity value is negative.
          */
-        ByteArrayBuffer( int capacity, bool readOnly = false )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        ByteArrayBuffer( int capacity, bool readOnly = false );
 
         /**
          * Creates a ByteArrayBuffer object that wraps the given array.
@@ -152,9 +151,7 @@ namespace nio{
          *         length are violated.
          */
         ByteArrayBuffer( unsigned char* array, int size, int offset, int length,
-                         bool readOnly = false )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+                         bool readOnly = false );
 
         /**
          * Creates a byte buffer that wraps the passed ByteArrayAdapter and
@@ -174,9 +171,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if offset is greater than array capacity.
          */
         ByteArrayBuffer( const decaf::lang::Pointer<ByteArrayAdapter>& array,
-                         int offset, int length, bool readOnly = false )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+                         int offset, int length, bool readOnly = false );
 
         /**
          * Create a ByteArrayBuffer that mirrors this one, meaning it shares a
@@ -202,16 +197,12 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual unsigned char* array()
-            throw( decaf::nio::ReadOnlyBufferException,
-                   decaf::lang::exceptions::UnsupportedOperationException );
+        virtual unsigned char* array();
 
         /**
          * {@inheritDoc}
          */
-        virtual int arrayOffset() const
-            throw( decaf::nio::ReadOnlyBufferException,
-                   decaf::lang::exceptions::UnsupportedOperationException );
+        virtual int arrayOffset() const;
 
         /**
          * {@inheritDoc}
@@ -258,7 +249,7 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& compact() throw( decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& compact();
 
         /**
          * {@inheritDoc}
@@ -268,26 +259,24 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual unsigned char get() const throw( decaf::nio::BufferUnderflowException );
+        virtual unsigned char get() const;
 
         /**
          * {@inheritDoc}
          */
-        virtual unsigned char get( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual unsigned char get( int index ) const;
 
         /**
          * {@inheritDoc}
          */
-        virtual char getChar() throw( decaf::nio::BufferUnderflowException ) {
+        virtual char getChar() {
             return (char)this->get();
         }
 
         /**
          * {@inheritDoc}
          */
-        virtual char getChar( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+        virtual char getChar( int index ) const {
 
             return (char)this->get( index );
         }
@@ -295,155 +284,122 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual double getDouble() throw( decaf::nio::BufferUnderflowException );
+        virtual double getDouble();
 
         /**
          * {@inheritDoc}
          */
-        virtual double getDouble( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual double getDouble( int index ) const;
 
         /**
          * {@inheritDoc}
          */
-        virtual float getFloat() throw( decaf::nio::BufferUnderflowException );
+        virtual float getFloat();
 
         /**
          * {@inheritDoc}
          */
-        virtual float getFloat( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual float getFloat( int index ) const;
 
         /**
          * {@inheritDoc}
          */
-        virtual long long getLong() throw( decaf::nio::BufferUnderflowException );
+        virtual long long getLong();
 
         /**
          * {@inheritDoc}
          */
-        virtual long long getLong( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual long long getLong( int index ) const;
 
         /**
          * {@inheritDoc}
          */
-        virtual int getInt() throw( decaf::nio::BufferUnderflowException );
+        virtual int getInt();
 
         /**
          * {@inheritDoc}
          */
-        virtual int getInt( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual int getInt( int index ) const;
 
         /**
          * {@inheritDoc}
          */
-        virtual short getShort() throw( decaf::nio::BufferUnderflowException );
+        virtual short getShort();
 
         /**
          * {@inheritDoc}
          */
-        virtual short getShort( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual short getShort( int index ) const;
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& put( unsigned char value )
-            throw( decaf::nio::BufferOverflowException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& put( unsigned char value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& put( int index, unsigned char value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& put( int index, unsigned char value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putChar( char value )
-            throw( decaf::nio::BufferOverflowException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putChar( char value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putChar( int index, char value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putChar( int index, char value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putDouble( double value )
-            throw( decaf::nio::BufferOverflowException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putDouble( double value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putDouble( int index, double value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putDouble( int index, double value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putFloat( float value )
-            throw( decaf::nio::BufferOverflowException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putFloat( float value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putFloat( int index, float value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putFloat( int index, float value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putLong( long long value )
-            throw( decaf::nio::BufferOverflowException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putLong( long long value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putLong( int index, long long value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putLong( int index, long long value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putInt( int value )
-            throw( decaf::nio::BufferOverflowException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putInt( int value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putInt( int index, int value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putInt( int index, int value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putShort( short value )
-            throw( decaf::nio::BufferOverflowException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putShort( short value );
 
         /**
          * {@inheritDoc}
          */
-        virtual ByteArrayBuffer& putShort( int index, short value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual ByteArrayBuffer& putShort( int index, short value );
 
         /**
          * {@inheritDoc}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/CharArrayBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/CharArrayBuffer.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/CharArrayBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/CharArrayBuffer.cpp Fri Jul  2 19:04:44 2010
@@ -28,8 +28,7 @@ using namespace decaf::internal::util;
 using namespace decaf::nio;
 
 ///////////////////////////////////////////////////////////////////////////////
-CharArrayBuffer::CharArrayBuffer( int size, bool readOnly )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) : CharBuffer( size ){
+CharArrayBuffer::CharArrayBuffer( int size, bool readOnly ) : CharBuffer( size ){
 
     // Allocate using the ByteArray, not read-only initially.  Take a reference to it.
     this->_array.reset( new ByteArrayAdapter( size ) );
@@ -39,9 +38,8 @@ CharArrayBuffer::CharArrayBuffer( int si
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-CharArrayBuffer::CharArrayBuffer( char* array, int size, int offset, int length, bool readOnly )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) : CharBuffer( length ) {
+CharArrayBuffer::CharArrayBuffer( char* array, int size, int offset, int length, bool readOnly ) :
+    CharBuffer( length ) {
 
     try{
 
@@ -68,9 +66,8 @@ CharArrayBuffer::CharArrayBuffer( char* 
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-CharArrayBuffer::CharArrayBuffer( const Pointer<ByteArrayAdapter>& array, int offset, int length, bool readOnly )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) : CharBuffer( length ) {
+CharArrayBuffer::CharArrayBuffer( const Pointer<ByteArrayAdapter>& array, int offset, int length, bool readOnly ) :
+    CharBuffer( length ) {
 
     try{
 
@@ -117,9 +114,7 @@ CharArrayBuffer::~CharArrayBuffer() {
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-char* CharArrayBuffer::array()
-    throw( decaf::lang::exceptions::UnsupportedOperationException,
-           decaf::nio::ReadOnlyBufferException ) {
+char* CharArrayBuffer::array() {
 
     try{
 
@@ -144,9 +139,7 @@ char* CharArrayBuffer::array()
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-int CharArrayBuffer::arrayOffset()
-    throw( decaf::lang::exceptions::UnsupportedOperationException,
-           decaf::nio::ReadOnlyBufferException ) {
+int CharArrayBuffer::arrayOffset() {
 
     try{
 
@@ -185,7 +178,7 @@ CharBuffer* CharArrayBuffer::asReadOnlyB
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharArrayBuffer::compact()  throw( decaf::nio::ReadOnlyBufferException ) {
+CharBuffer& CharArrayBuffer::compact() {
 
     try{
 
@@ -223,7 +216,7 @@ CharBuffer* CharArrayBuffer::duplicate()
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-char CharArrayBuffer::get() throw ( decaf::nio::BufferUnderflowException ) {
+char CharArrayBuffer::get() {
 
     try{
         return this->get( this->_position++ );
@@ -234,8 +227,7 @@ char CharArrayBuffer::get() throw ( deca
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-char CharArrayBuffer::get( int index ) const
-    throw ( lang::exceptions::IndexOutOfBoundsException ) {
+char CharArrayBuffer::get( int index ) const {
 
     try{
 
@@ -258,8 +250,7 @@ char CharArrayBuffer::get( int index ) c
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharArrayBuffer::put( char value )
-    throw( BufferOverflowException, ReadOnlyBufferException ) {
+CharBuffer& CharArrayBuffer::put( char value ) {
 
     try{
 
@@ -273,9 +264,7 @@ CharBuffer& CharArrayBuffer::put( char v
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharArrayBuffer::put( int index, char value )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::nio::ReadOnlyBufferException ) {
+CharBuffer& CharArrayBuffer::put( int index, char value ) {
 
     try{
 
@@ -321,8 +310,7 @@ CharBuffer* CharArrayBuffer::slice() con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharSequence* CharArrayBuffer::subSequence( int start, int end ) const
-    throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+CharSequence* CharArrayBuffer::subSequence( int start, int end ) const {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/CharArrayBuffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/CharArrayBuffer.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/CharArrayBuffer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/CharArrayBuffer.h Fri Jul  2 19:04:44 2010
@@ -63,8 +63,7 @@ namespace nio{
          *
          * @throws IllegalArguementException if the capacity value is negative.
          */
-        CharArrayBuffer( int size, bool readOnly = false )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        CharArrayBuffer( int size, bool readOnly = false );
 
         /**
          * Creates a CharArrayBuffer object that wraps the given array.  If the own flag
@@ -84,9 +83,7 @@ namespace nio{
          * @throws NullPointerException if buffer is NULL
          * @throws IndexOutOfBoundsException if offset is greater than array capacity.
          */
-        CharArrayBuffer( char* array, int size, int offset, int length, bool readOnly = false )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        CharArrayBuffer( char* array, int size, int offset, int length, bool readOnly = false );
 
         /**
          * Creates a byte buffer that wraps the passed ByteArrayAdapter and
@@ -106,9 +103,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if offset + length is greater than array size.
          */
         CharArrayBuffer( const decaf::lang::Pointer<ByteArrayAdapter>& array,
-                         int offset, int length, bool readOnly = false )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+                         int offset, int length, bool readOnly = false );
 
         /**
          * Create a CharArrayBuffer that mirrors this one, meaning it shares a
@@ -127,16 +122,12 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual char* array()
-            throw( decaf::lang::exceptions::UnsupportedOperationException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual char* array();
 
         /**
          * {@inheritDoc}
          */
-        virtual int arrayOffset()
-            throw( decaf::lang::exceptions::UnsupportedOperationException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual int arrayOffset();
 
         /**
          * {@inheritDoc}
@@ -146,7 +137,7 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual CharBuffer& compact() throw( decaf::nio::ReadOnlyBufferException );
+        virtual CharBuffer& compact();
 
         /**
          * {@inheritDoc}
@@ -156,13 +147,12 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual char get() throw ( decaf::nio::BufferUnderflowException );
+        virtual char get();
 
         /**
          * {@inheritDoc}
          */
-        virtual char get( int index ) const
-            throw ( lang::exceptions::IndexOutOfBoundsException );
+        virtual char get( int index ) const;
 
         /**
          * {@inheritDoc}
@@ -179,16 +169,12 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual CharBuffer& put( char value )
-            throw( decaf::nio::BufferOverflowException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual CharBuffer& put( char value );
 
         /**
          * {@inheritDoc}
          */
-        virtual CharBuffer& put( int index, char value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual CharBuffer& put( int index, char value );
 
         /**
          * {@inheritDoc}
@@ -198,8 +184,7 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual lang::CharSequence* subSequence( int start, int end ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual lang::CharSequence* subSequence( int start, int end ) const;
 
     protected:
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/DoubleArrayBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/DoubleArrayBuffer.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/DoubleArrayBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/DoubleArrayBuffer.cpp Fri Jul  2 19:04:44 2010
@@ -26,8 +26,7 @@ using namespace decaf::internal::util;
 using namespace decaf::nio;
 
 ///////////////////////////////////////////////////////////////////////////////
-DoubleArrayBuffer::DoubleArrayBuffer( int size, bool readOnly )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) : DoubleBuffer( size ){
+DoubleArrayBuffer::DoubleArrayBuffer( int size, bool readOnly ) : DoubleBuffer( size ){
 
     // Allocate using the ByteArray, not read-only initially.  Take a reference to it.
     // The capacity is the given capacity times the size of the stored datatype
@@ -38,9 +37,8 @@ DoubleArrayBuffer::DoubleArrayBuffer( in
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-DoubleArrayBuffer::DoubleArrayBuffer( double* array, int size, int offset, int length, bool readOnly )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) : DoubleBuffer( length ) {
+DoubleArrayBuffer::DoubleArrayBuffer( double* array, int size, int offset, int length, bool readOnly ) :
+    DoubleBuffer( length ) {
 
     try{
 
@@ -68,9 +66,7 @@ DoubleArrayBuffer::DoubleArrayBuffer( do
 
 ///////////////////////////////////////////////////////////////////////////////
 DoubleArrayBuffer::DoubleArrayBuffer( const Pointer<ByteArrayAdapter>& array,
-                                      int offset, int length, bool readOnly )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) : DoubleBuffer( length ) {
+                                      int offset, int length, bool readOnly ) : DoubleBuffer( length ) {
 
     try{
 
@@ -117,9 +113,7 @@ DoubleArrayBuffer::~DoubleArrayBuffer() 
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-double* DoubleArrayBuffer::array()
-    throw( decaf::lang::exceptions::UnsupportedOperationException,
-           decaf::nio::ReadOnlyBufferException ) {
+double* DoubleArrayBuffer::array() {
 
     try{
 
@@ -144,9 +138,7 @@ double* DoubleArrayBuffer::array()
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-int DoubleArrayBuffer::arrayOffset()
-    throw( decaf::lang::exceptions::UnsupportedOperationException,
-           decaf::nio::ReadOnlyBufferException ) {
+int DoubleArrayBuffer::arrayOffset() {
 
     try{
 
@@ -185,7 +177,7 @@ DoubleBuffer* DoubleArrayBuffer::asReadO
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-DoubleBuffer& DoubleArrayBuffer::compact() throw( decaf::nio::ReadOnlyBufferException ) {
+DoubleBuffer& DoubleArrayBuffer::compact() {
 
     try{
 
@@ -223,7 +215,7 @@ DoubleBuffer* DoubleArrayBuffer::duplica
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-double DoubleArrayBuffer::get() throw ( decaf::nio::BufferUnderflowException ) {
+double DoubleArrayBuffer::get() {
 
     try{
         return this->get( this->_position++ );
@@ -234,8 +226,7 @@ double DoubleArrayBuffer::get() throw ( 
 }
 
 ///////////////////////////////////////////////////////////////////////////////
-double DoubleArrayBuffer::get( int index ) const
-    throw ( lang::exceptions::IndexOutOfBoundsException ) {
+double DoubleArrayBuffer::get( int index ) const {
 
     try{
 
@@ -253,8 +244,7 @@ double DoubleArrayBuffer::get( int index
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer& DoubleArrayBuffer::put( double value )
-    throw( BufferOverflowException, ReadOnlyBufferException ) {
+DoubleBuffer& DoubleArrayBuffer::put( double value ) {
 
     try{
 
@@ -268,9 +258,7 @@ DoubleBuffer& DoubleArrayBuffer::put( do
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer& DoubleArrayBuffer::put( int index, double value )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::nio::ReadOnlyBufferException ) {
+DoubleBuffer& DoubleArrayBuffer::put( int index, double value ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/DoubleArrayBuffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/DoubleArrayBuffer.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/DoubleArrayBuffer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/nio/DoubleArrayBuffer.h Fri Jul  2 19:04:44 2010
@@ -63,8 +63,7 @@ namespace nio{
          *
          * @throws IllegalArguementException if the capacity value is negative.
          */
-        DoubleArrayBuffer( int capacity, bool readOnly = false )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        DoubleArrayBuffer( int capacity, bool readOnly = false );
 
         /**
          * Creates a DoubleArrayBuffer object that wraps the given array.  If the own flag
@@ -84,9 +83,7 @@ namespace nio{
          * @throws NullPointerException if buffer is NULL
          * @throws IndexOutOfBoundsException if offset is greater than array capacity.
          */
-        DoubleArrayBuffer( double* array, int size, int offset, int length, bool readOnly = false )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        DoubleArrayBuffer( double* array, int size, int offset, int length, bool readOnly = false );
 
         /**
          * Creates a byte buffer that wraps the passed ByteArrayAdapter and
@@ -106,9 +103,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if offset + length is greater than array size.
          */
         DoubleArrayBuffer( const decaf::lang::Pointer<ByteArrayAdapter>& array,
-                           int offset, int length, bool readOnly = false )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+                           int offset, int length, bool readOnly = false );
 
         /**
          * Create a DoubleArrayBuffer that mirrors this one, meaning it shares a
@@ -127,16 +122,12 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual double* array()
-            throw( decaf::lang::exceptions::UnsupportedOperationException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual double* array();
 
         /**
          * {@inheritDoc}
          */
-        virtual int arrayOffset()
-            throw( decaf::lang::exceptions::UnsupportedOperationException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual int arrayOffset();
 
         /**
          * {@inheritDoc}
@@ -146,7 +137,7 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual DoubleBuffer& compact() throw( decaf::nio::ReadOnlyBufferException );
+        virtual DoubleBuffer& compact();
 
         /**
          * {@inheritDoc}
@@ -156,13 +147,12 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual double get() throw ( decaf::nio::BufferUnderflowException );
+        virtual double get();
 
         /**
          * {@inheritDoc}
          */
-        virtual double get( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual double get( int index ) const;
 
         /**
          * {@inheritDoc}
@@ -179,16 +169,12 @@ namespace nio{
         /**
          * {@inheritDoc}
          */
-        virtual DoubleBuffer& put( double value )
-            throw( decaf::nio::BufferOverflowException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual DoubleBuffer& put( double value );
 
         /**
          * {@inheritDoc}
          */
-        virtual DoubleBuffer& put( int index, double value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::nio::ReadOnlyBufferException );
+        virtual DoubleBuffer& put( int index, double value );
 
         /**
          * {@inheritDoc}