activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r960088 [4/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...
Date Fri, 02 Jul 2010 19:04:50 GMT
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedInputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedInputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedInputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedInputStream.h Fri Jul  2 19:04:44 2010
@@ -74,27 +74,24 @@ namespace io{
          *
          * @throws IllegalArgumentException is the size is zero or negative.
          */
-        BufferedInputStream( InputStream* stream, int bufferSize, bool own = false )
-            throw ( lang::exceptions::IllegalArgumentException );
+        BufferedInputStream( InputStream* stream, int bufferSize, bool own = false );
 
         virtual ~BufferedInputStream();
 
         /**
          * {@inheritDoc}
          */
-        virtual int available() const throw ( decaf::io::IOException );
+        virtual int available() const;
 
         /**
          * {@inheritDoc}
          */
-        virtual void close() throw( decaf::io::IOException );
+        virtual void close();
 
         /**
          * {@inheritDoc}
          */
-        virtual long long skip( long long num )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::UnsupportedOperationException );
+        virtual long long skip( long long num );
 
         /**
          * {@inheritDoc}
@@ -104,7 +101,7 @@ namespace io{
         /**
          * {@inheritDoc}
          */
-        virtual void reset() throw ( decaf::io::IOException );
+        virtual void reset();
 
         /**
          * {@inheritDoc}
@@ -113,17 +110,13 @@ namespace io{
 
     protected:
 
-        virtual int doReadByte() throw ( decaf::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 );
 
     private:
 
-        int bufferData( InputStream* stream, unsigned char*& buffer )
-            throw ( decaf::io::IOException );
+        int bufferData( InputStream* stream, unsigned char*& buffer );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedOutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedOutputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedOutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedOutputStream.cpp Fri Jul  2 19:04:44 2010
@@ -35,8 +35,8 @@ BufferedOutputStream::BufferedOutputStre
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-BufferedOutputStream::BufferedOutputStream( OutputStream* stream, int bufSize, bool own )
-    throw( IllegalArgumentException ) : FilterOutputStream( stream, own ) {
+BufferedOutputStream::BufferedOutputStream( OutputStream* stream, int bufSize, bool own ) :
+    FilterOutputStream( stream, own ) {
 
     try {
         this->init( bufSize );
@@ -47,6 +47,7 @@ BufferedOutputStream::BufferedOutputStre
 
 ////////////////////////////////////////////////////////////////////////////////
 BufferedOutputStream::~BufferedOutputStream() {
+
     try{
         this->close();
 
@@ -75,7 +76,7 @@ void BufferedOutputStream::init( int buf
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void BufferedOutputStream::emptyBuffer() throw ( IOException ){
+void BufferedOutputStream::emptyBuffer() {
 
     if( this->outputStream == NULL ) {
         throw IOException(
@@ -90,7 +91,7 @@ void BufferedOutputStream::emptyBuffer()
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void BufferedOutputStream::flush() throw ( decaf::io::IOException ) {
+void BufferedOutputStream::flush() {
 
     try {
 
@@ -111,8 +112,7 @@ void BufferedOutputStream::flush() throw
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void BufferedOutputStream::doWriteByte( const unsigned char c )
-    throw ( decaf::io::IOException ) {
+void BufferedOutputStream::doWriteByte( const unsigned char c ) {
 
     try{
 
@@ -133,8 +133,7 @@ void BufferedOutputStream::doWriteByte( 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void BufferedOutputStream::doWriteArray( const unsigned char* buffer, int size )
-    throw ( decaf::io::IOException ) {
+void BufferedOutputStream::doWriteArray( const unsigned char* buffer, int size ) {
 
     try{
 
@@ -156,10 +155,7 @@ void BufferedOutputStream::doWriteArray(
 
 ////////////////////////////////////////////////////////////////////////////////
 void BufferedOutputStream::doWriteArrayBounded( const unsigned char* buffer, int size,
-                                                int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+                                                int offset, int length ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedOutputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedOutputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedOutputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/BufferedOutputStream.h Fri Jul  2 19:04:44 2010
@@ -80,27 +80,22 @@ namespace io{
          *
          * @throws IllegalArgumentException if the bufferSize given is negative.
          */
-        BufferedOutputStream( OutputStream* stream, int bufferSize, bool own = false )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        BufferedOutputStream( OutputStream* stream, int bufferSize, bool own = false );
 
         virtual ~BufferedOutputStream();
 
         /**
          * @{inheritDoc}
          */
-        virtual void flush() throw ( decaf::io::IOException );
+        virtual void flush();
 
     protected:
 
-        virtual void doWriteByte( unsigned char c ) throw ( decaf::io::IOException );
+        virtual void doWriteByte( unsigned char c );
 
-        virtual void doWriteArray( const unsigned char* buffer, int size )
-            throw ( decaf::io::IOException );
+        virtual void doWriteArray( const unsigned char* buffer, int size );
 
-        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 );
 
     private:
 
@@ -115,7 +110,7 @@ namespace io{
         /**
          * Writes the contents of the buffer to the output stream.
          */
-        void emptyBuffer() throw ( decaf::io::IOException );
+        void emptyBuffer();
 
    };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayInputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayInputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayInputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayInputStream.cpp Fri Jul  2 19:04:44 2010
@@ -40,18 +40,14 @@ ByteArrayInputStream::ByteArrayInputStre
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayInputStream::ByteArrayInputStream( const unsigned char* buffer, int bufferSize, bool own )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IllegalArgumentException ) :
+ByteArrayInputStream::ByteArrayInputStream( const unsigned char* buffer, int bufferSize, bool own ) :
                InputStream(), buffer( NULL ), size( 0 ), own( own ), count( 0 ), pos( 0 ), markpos( 0 ) {
 
     setByteArray( buffer, bufferSize, 0, bufferSize );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayInputStream::ByteArrayInputStream( const unsigned char* buffer, int bufferSize, int offset, int length, bool own )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IllegalArgumentException ) :
+ByteArrayInputStream::ByteArrayInputStream( const unsigned char* buffer, int bufferSize, int offset, int length, bool own ) :
                InputStream(), buffer( NULL ), size( 0 ), own( own ), count( 0 ), pos( 0 ), markpos( 0 ) {
 
     setByteArray( buffer, bufferSize, offset, length );
@@ -76,17 +72,13 @@ void ByteArrayInputStream::setByteArray(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ByteArrayInputStream::setByteArray( const unsigned char* buffer, int bufferSize )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IllegalArgumentException ) {
+void ByteArrayInputStream::setByteArray( const unsigned char* buffer, int bufferSize ) {
 
     setByteArray( buffer, bufferSize, 0, bufferSize );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ByteArrayInputStream::setByteArray( const unsigned char* buffer, int bufferSize, int offset, int length )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IllegalArgumentException ) {
+void ByteArrayInputStream::setByteArray( const unsigned char* buffer, int bufferSize, int offset, int length ) {
 
     if( buffer == NULL ) {
         throw NullPointerException(
@@ -117,7 +109,7 @@ void ByteArrayInputStream::setByteArray(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int ByteArrayInputStream::available() const throw ( IOException ) {
+int ByteArrayInputStream::available() const {
 
     return this->count - this->pos;
 }
@@ -131,7 +123,7 @@ void ByteArrayInputStream::mark( int rea
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ByteArrayInputStream::reset() throw ( IOException ){
+void ByteArrayInputStream::reset() {
 
     try{
 
@@ -144,7 +136,7 @@ void ByteArrayInputStream::reset() throw
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int ByteArrayInputStream::doReadByte() throw ( IOException ){
+int ByteArrayInputStream::doReadByte() {
 
     try{
         return pos < count ? buffer[pos++] : -1;
@@ -155,10 +147,7 @@ int ByteArrayInputStream::doReadByte() t
 
 ////////////////////////////////////////////////////////////////////////////////
 int ByteArrayInputStream::doReadArrayBounded( unsigned char* buffer, int size,
-                                              int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::IndexOutOfBoundsException,
-            decaf::lang::exceptions::NullPointerException ) {
+                                              int offset, int length ) {
 
     try{
 
@@ -203,8 +192,7 @@ int ByteArrayInputStream::doReadArrayBou
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long ByteArrayInputStream::skip( long long num )
-    throw ( IOException, lang::exceptions::UnsupportedOperationException ){
+long long ByteArrayInputStream::skip( long long num ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayInputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayInputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayInputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayInputStream.h Fri Jul  2 19:04:44 2010
@@ -121,9 +121,7 @@ namespace io{
          * @throws NullPointerException if the buffer is Null.
          * @throws IllegalArguementException if the bufferSize is negative.
          */
-        ByteArrayInputStream( const unsigned char* buffer, int bufferSize, bool own = false )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IllegalArgumentException );
+        ByteArrayInputStream( const unsigned char* buffer, int bufferSize, bool own = false );
 
         /**
          * Create an instance of the ByteArrayInputStream with the given buffer as
@@ -143,9 +141,7 @@ namespace io{
          * @throws NullPointerException if the buffer is Null.
          * @throws IllegalArguementException if the bufferSize is negative.
          */
-        ByteArrayInputStream( const unsigned char* buffer, int bufferSize, int offset, int length, bool own = false )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IllegalArgumentException );
+        ByteArrayInputStream( const unsigned char* buffer, int bufferSize, int offset, int length, bool own = false );
 
         virtual ~ByteArrayInputStream();
 
@@ -174,9 +170,7 @@ namespace io{
          * @throws NullPointerException if the buffer is Null.
          * @throws IllegalArguementException if the bufferSize is negative.
          */
-        virtual void setByteArray( const unsigned char* buffer, int bufferSize )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IllegalArgumentException );
+        virtual void setByteArray( const unsigned char* buffer, int bufferSize );
 
         /**
          * Sets the data that this reader uses, replaces any existing
@@ -194,20 +188,17 @@ namespace io{
          * @throws NullPointerException if the buffer is Null.
          * @throws IllegalArguementException if the bufferSize is negative.
          */
-        virtual void setByteArray( const unsigned char* buffer, int bufferSize, int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IllegalArgumentException );
+        virtual void setByteArray( const unsigned char* buffer, int bufferSize, int offset, int length );
 
         /**
          * {@inheritDoc}
          */
-        virtual int available() const throw ( IOException );
+        virtual int available() const;
 
         /**
          * {@inheritDoc}
          */
-        virtual long long skip( long long num )
-            throw ( io::IOException, lang::exceptions::UnsupportedOperationException );
+        virtual long long skip( long long num );
 
         /**
          * {@inheritDoc}
@@ -217,7 +208,7 @@ namespace io{
         /**
          * {@inheritDoc}
          */
-        virtual void reset() throw ( IOException );
+        virtual void reset();
 
         /**
          * {@inheritDoc}
@@ -226,12 +217,9 @@ namespace io{
 
     protected:
 
-        virtual int doReadByte() throw ( 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/io/ByteArrayOutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.cpp Fri Jul  2 19:04:44 2010
@@ -33,8 +33,7 @@ ByteArrayOutputStream::ByteArrayOutputSt
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteArrayOutputStream::ByteArrayOutputStream( int bufferSize )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) :
+ByteArrayOutputStream::ByteArrayOutputStream( int bufferSize ) :
         OutputStream(), buffer( NULL ), bufferSize( bufferSize ), count( 0 ) {
 
     if( bufferSize <= 0 ) {
@@ -75,13 +74,12 @@ long long ByteArrayOutputStream::size() 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ByteArrayOutputStream::reset() throw ( IOException ) {
+void ByteArrayOutputStream::reset() {
     this->count = 0;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ByteArrayOutputStream::doWriteByte( unsigned char c )
-    throw ( IOException ) {
+void ByteArrayOutputStream::doWriteByte( unsigned char c ) {
 
     try{
 
@@ -96,10 +94,7 @@ void ByteArrayOutputStream::doWriteByte(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ByteArrayOutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+void ByteArrayOutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length ) {
 
     if( length == 0 ) {
         return;
@@ -149,8 +144,7 @@ std::string ByteArrayOutputStream::toStr
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ByteArrayOutputStream::writeTo( OutputStream* out ) const
-    throw ( IOException, lang::exceptions::NullPointerException ) {
+void ByteArrayOutputStream::writeTo( OutputStream* out ) const {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.h Fri Jul  2 19:04:44 2010
@@ -68,8 +68,7 @@ namespace io{
          *
          * @throw IllegalArgumentException if the size is less than or equal to zero.
          */
-        ByteArrayOutputStream( int bufferSize )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        ByteArrayOutputStream( int bufferSize );
 
         virtual ~ByteArrayOutputStream();
 
@@ -94,7 +93,7 @@ namespace io{
          * Clear current Stream contents
          * @throws IOException
          */
-        virtual void reset() throw ( IOException );
+        virtual void reset();
 
         /**
          * Converts the bytes in the buffer into a standard C++ string
@@ -107,18 +106,13 @@ namespace io{
          * specified output stream argument, as if by calling the output
          * stream's write method using out.write( buf, 0, count ).
          */
-        void writeTo( OutputStream* out ) const
-            throw ( decaf::io::IOException, decaf::lang::exceptions::NullPointerException );
+        void writeTo( OutputStream* out ) const;
 
     protected:
 
-        virtual void doWriteByte( unsigned char value )
-           throw ( decaf::io::IOException );
+        virtual void doWriteByte( unsigned char value );
 
-        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 );
 
     private:
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInput.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInput.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInput.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInput.h Fri Jul  2 19:04:44 2010
@@ -62,8 +62,7 @@ namespace io {
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual bool readBoolean()
-            throw( decaf::io::IOException, decaf::io::EOFException ) = 0;
+        virtual bool readBoolean() = 0;
 
         /**
          * Reads and returns one input byte. The byte is treated as a
@@ -74,8 +73,7 @@ namespace io {
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual char readByte()
-            throw( decaf::io::IOException, decaf::io::EOFException ) = 0;
+        virtual char readByte() = 0;
 
         /**
          * Reads one input byte, zero-extends it to type int, and returns
@@ -86,8 +84,7 @@ namespace io {
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual unsigned char readUnsignedByte()
-            throw( decaf::io::IOException, decaf::io::EOFException ) = 0;
+        virtual unsigned char readUnsignedByte() = 0;
 
         /**
          * Reads an input char and returns the char value. A ascii char
@@ -99,8 +96,7 @@ namespace io {
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual char readChar()
-            throw( decaf::io::IOException, decaf::io::EOFException ) = 0;
+        virtual char readChar() = 0;
 
         /**
          * Reads eight input bytes and returns a double value. It does this
@@ -113,8 +109,7 @@ namespace io {
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual double readDouble()
-            throw( decaf::io::IOException, decaf::io::EOFException ) = 0;
+        virtual double readDouble() = 0;
 
         /**
          * Reads four input bytes and returns a float value. It does this
@@ -127,8 +122,7 @@ namespace io {
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual float readFloat()
-            throw( decaf::io::IOException, decaf::io::EOFException ) = 0;
+        virtual float readFloat() = 0;
 
         /**
          * Reads four input bytes and returns an int value. Let a  be the
@@ -143,8 +137,7 @@ namespace io {
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual int readInt()
-            throw( decaf::io::IOException, decaf::io::EOFException ) = 0;
+        virtual int readInt() = 0;
 
         /**
          * Reads eight input bytes and returns a long value. Let a  be the
@@ -167,8 +160,7 @@ namespace io {
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual long long readLong()
-            throw( decaf::io::IOException, decaf::io::EOFException ) = 0;
+        virtual long long readLong() = 0;
 
         /**
          * Reads two input bytes and returns a short value. Let a  be the
@@ -181,8 +173,7 @@ namespace io {
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual short readShort()
-            throw( decaf::io::IOException, decaf::io::EOFException ) = 0;
+        virtual short readShort() = 0;
 
         /**
          * Reads two input bytes and returns an int value in the range 0
@@ -196,8 +187,7 @@ namespace io {
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual unsigned short readUnsignedShort()
-            throw( decaf::io::IOException, decaf::io::EOFException ) = 0;
+        virtual unsigned short readUnsignedShort() = 0;
 
         /**
          * Reads an NULL terminated ASCII string to the stream and returns the
@@ -208,8 +198,7 @@ namespace io {
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual std::string readString()
-            throw( decaf::io::IOException, decaf::io::EOFException ) = 0;
+        virtual std::string readString() = 0;
 
         /**
          * Reads the next line of text from the input stream. It reads successive bytes, converting
@@ -230,8 +219,7 @@ namespace io {
          *
          * @throws IOException if an I/O Error occurs.
          */
-        virtual std::string readLine()
-            throw( decaf::io::IOException ) = 0;
+        virtual std::string readLine() = 0;
 
         /**
          * Reads a modified UTF-8 encoded string in ASCII format and returns it,
@@ -248,10 +236,7 @@ namespace io {
          * @throws EOFException if the end of input is reached.
          * @throws UTFDataFormatException if the bytes are not valid modified UTF-8 values.
          */
-        virtual std::string readUTF()
-            throw( decaf::io::IOException,
-                   decaf::io::EOFException,
-                   decaf::io::UTFDataFormatException ) = 0;
+        virtual std::string readUTF() = 0;
 
         /**
          * Reads some bytes from an input stream and stores them into the
@@ -281,10 +266,7 @@ namespace io {
          * @throws EOFException if the end of input is reached.
          * @throws IndexOutOfBoundsException if the size value is negative.
          */
-        virtual void readFully( unsigned char* buffer, int size )
-            throw( decaf::io::IOException,
-                   decaf::io::EOFException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual void readFully( unsigned char* buffer, int size ) = 0;
 
         /**
          * Reads length bytes from an input stream.
@@ -317,11 +299,7 @@ namespace io {
          * @throws NullPointerException if the buffer is NULL.
          * @throws IndexOutOfBoundsException if the offset + length > size, or an int param is negative.
          */
-        virtual void readFully( unsigned char* buffer, int size, int offset, int length )
-            throw ( decaf::io::IOException,
-                    decaf::io::EOFException,
-                    decaf::lang::exceptions::NullPointerException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual void readFully( unsigned char* buffer, int size, int offset, int length ) = 0;
 
         /**
          * Makes an attempt to skip over n bytes of data from the input stream,
@@ -338,7 +316,7 @@ namespace io {
          *
          * @throws IOException if an I/O Error occurs.
          */
-        virtual long long skipBytes( long long num ) throw( io::IOException ) = 0;
+        virtual long long skipBytes( long long num ) = 0;
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.cpp Fri Jul  2 19:04:44 2010
@@ -39,7 +39,7 @@ DataInputStream::DataInputStream( InputS
 DataInputStream::~DataInputStream() {}
 
 ////////////////////////////////////////////////////////////////////////////////
-bool DataInputStream::readBoolean() throw( IOException, EOFException ) {
+bool DataInputStream::readBoolean() {
 
     try {
         readAllData( buffer, sizeof(char) );
@@ -51,7 +51,7 @@ bool DataInputStream::readBoolean() thro
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-char DataInputStream::readByte() throw ( IOException, EOFException ) {
+char DataInputStream::readByte() {
 
     try {
         readAllData( buffer, sizeof(unsigned char) );
@@ -63,7 +63,7 @@ char DataInputStream::readByte() throw (
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-unsigned char DataInputStream::readUnsignedByte() throw ( IOException, EOFException ) {
+unsigned char DataInputStream::readUnsignedByte() {
 
     try {
         readAllData( buffer, sizeof(unsigned char) );
@@ -75,7 +75,7 @@ unsigned char DataInputStream::readUnsig
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-char DataInputStream::readChar() throw ( IOException, EOFException ) {
+char DataInputStream::readChar() {
 
     try {
         readAllData( buffer, sizeof(unsigned char) );
@@ -87,7 +87,7 @@ char DataInputStream::readChar() throw (
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-short DataInputStream::readShort() throw ( io::IOException, io::EOFException ) {
+short DataInputStream::readShort() {
 
     try {
         short value = 0;
@@ -101,7 +101,7 @@ short DataInputStream::readShort() throw
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-unsigned short DataInputStream::readUnsignedShort() throw ( io::IOException, io::EOFException ) {
+unsigned short DataInputStream::readUnsignedShort() {
 
     try {
         unsigned short value = 0;
@@ -115,7 +115,7 @@ unsigned short DataInputStream::readUnsi
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int DataInputStream::readInt() throw ( io::IOException, io::EOFException ) {
+int DataInputStream::readInt() {
 
     try {
         unsigned int value = 0;
@@ -130,7 +130,7 @@ int DataInputStream::readInt() throw ( i
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-double DataInputStream::readDouble() throw ( io::IOException, io::EOFException ) {
+double DataInputStream::readDouble() {
 
     try {
         unsigned long long lvalue = this->readLong();
@@ -144,7 +144,7 @@ double DataInputStream::readDouble() thr
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-float DataInputStream::readFloat() throw ( io::IOException, io::EOFException ) {
+float DataInputStream::readFloat() {
 
     try {
         unsigned int lvalue = this->readInt();
@@ -158,8 +158,7 @@ float DataInputStream::readFloat() throw
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long DataInputStream::readLong()
-    throw ( io::IOException, io::EOFException ) {
+long long DataInputStream::readLong() {
 
     try {
         unsigned long long value = 0;
@@ -187,7 +186,7 @@ long long DataInputStream::readLong()
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::string DataInputStream::readString() throw ( io::IOException, io::EOFException ) {
+std::string DataInputStream::readString() {
 
     try {
 
@@ -229,8 +228,7 @@ std::string DataInputStream::readString(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::string DataInputStream::readUTF()
-    throw ( io::IOException, io::EOFException, io::UTFDataFormatException ) {
+std::string DataInputStream::readUTF() {
 
     try {
 
@@ -325,10 +323,7 @@ std::string DataInputStream::readUTF()
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataInputStream::readFully( unsigned char* buffer, int size )
-    throw ( decaf::io::IOException,
-            decaf::io::EOFException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+void DataInputStream::readFully( unsigned char* buffer, int size ) {
 
     try {
 
@@ -345,7 +340,7 @@ void DataInputStream::readFully( unsigne
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::string DataInputStream::readLine() throw( decaf::io::IOException ) {
+std::string DataInputStream::readLine() {
     try{
 
         throw IOException( __FILE__, __LINE__, "Not Yet Implemented." );
@@ -389,11 +384,7 @@ std::string DataInputStream::readLine() 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataInputStream::readFully( unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::io::EOFException,
-            decaf::lang::exceptions::IndexOutOfBoundsException,
-            decaf::lang::exceptions::NullPointerException ) {
+void DataInputStream::readFully( unsigned char* buffer, int size, int offset, int length ) {
 
     try {
 
@@ -444,8 +435,7 @@ void DataInputStream::readFully( unsigne
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long DataInputStream::skipBytes( long long num )
-    throw( decaf::io::IOException ) {
+long long DataInputStream::skipBytes( long long num ) {
 
     try {
 
@@ -470,8 +460,7 @@ long long DataInputStream::skipBytes( lo
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataInputStream::readAllData( unsigned char* buffer, int length )
-    throw ( decaf::io::IOException, decaf::io::EOFException ) {
+void DataInputStream::readAllData( unsigned char* buffer, int length ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.h Fri Jul  2 19:04:44 2010
@@ -79,8 +79,7 @@ namespace io{
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual bool readBoolean()
-            throw( decaf::io::IOException, decaf::io::EOFException );
+        virtual bool readBoolean();
 
         /**
          * Reads and returns one input byte. The byte is treated as a
@@ -91,8 +90,7 @@ namespace io{
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual char readByte()
-            throw( decaf::io::IOException, decaf::io::EOFException );
+        virtual char readByte();
 
         /**
          * Reads one input byte, zero-extends it to type int, and returns
@@ -103,8 +101,7 @@ namespace io{
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual unsigned char readUnsignedByte()
-            throw( decaf::io::IOException, decaf::io::EOFException );
+        virtual unsigned char readUnsignedByte();
 
         /**
          * Reads an input char and returns the char value. A ascii char
@@ -116,8 +113,7 @@ namespace io{
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual char readChar()
-            throw( decaf::io::IOException, decaf::io::EOFException );
+        virtual char readChar();
 
         /**
          * Reads eight input bytes and returns a double value. It does this
@@ -130,8 +126,7 @@ namespace io{
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual double readDouble()
-            throw( decaf::io::IOException, decaf::io::EOFException );
+        virtual double readDouble();
 
         /**
          * Reads four input bytes and returns a float value. It does this
@@ -144,8 +139,7 @@ namespace io{
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual float readFloat()
-            throw( decaf::io::IOException, decaf::io::EOFException );
+        virtual float readFloat();
 
         /**
          * Reads four input bytes and returns an int value. Let a  be the
@@ -160,8 +154,7 @@ namespace io{
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual int readInt()
-            throw( decaf::io::IOException, decaf::io::EOFException );
+        virtual int readInt();
 
         /**
          * Reads eight input bytes and returns a long value. Let a  be the
@@ -184,8 +177,7 @@ namespace io{
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual long long readLong()
-            throw( decaf::io::IOException, decaf::io::EOFException );
+        virtual long long readLong();
 
         /**
          * Reads two input bytes and returns a short value. Let a  be the
@@ -198,8 +190,7 @@ namespace io{
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual short readShort()
-            throw( decaf::io::IOException, decaf::io::EOFException );
+        virtual short readShort();
 
         /**
          * Reads two input bytes and returns an int value in the range 0
@@ -213,8 +204,7 @@ namespace io{
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual unsigned short readUnsignedShort()
-            throw( decaf::io::IOException, decaf::io::EOFException );
+        virtual unsigned short readUnsignedShort();
 
         /**
          * Reads an NULL terminated ASCII string to the stream and returns the
@@ -225,8 +215,7 @@ namespace io{
          * @throws IOException if an I/O Error occurs.
          * @throws EOFException if the end of input is reached.
          */
-        virtual std::string readString()
-            throw( decaf::io::IOException, decaf::io::EOFException );
+        virtual std::string readString();
 
         /**
          * Reads the next line of text from the input stream. It reads successive bytes, converting
@@ -247,8 +236,7 @@ namespace io{
          *
          * @throws IOException if an I/O Error occurs.
          */
-        virtual std::string readLine()
-            throw( decaf::io::IOException );
+        virtual std::string readLine();
 
         /**
          * Reads a modified UTF-8 encoded string in ASCII format and returns it,
@@ -265,10 +253,7 @@ namespace io{
          * @throws EOFException if the end of input is reached.
          * @throws UTFDataFormatException if the bytes are not valid modified UTF-8 values.
          */
-        virtual std::string readUTF()
-            throw( decaf::io::IOException,
-                   decaf::io::EOFException,
-                   decaf::io::UTFDataFormatException );
+        virtual std::string readUTF();
 
         /**
          * Reads some bytes from an input stream and stores them into the
@@ -298,10 +283,7 @@ namespace io{
          * @throws EOFException if the end of input is reached.
          * @throws IndexOutOfBoundsException if the size value is negative.
          */
-        virtual void readFully( unsigned char* buffer, int size )
-            throw( decaf::io::IOException,
-                   decaf::io::EOFException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual void readFully( unsigned char* buffer, int size );
 
         /**
          * Reads length bytes from an input stream.
@@ -334,11 +316,7 @@ namespace io{
          * @throws NullPointerException if the buffer is NULL.
          * @throws IndexOutOfBoundsException if the offset + length > size.
          */
-        virtual void readFully( unsigned char* buffer, int size, int offset, int length )
-            throw ( decaf::io::IOException,
-                    decaf::io::EOFException,
-                    decaf::lang::exceptions::NullPointerException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual void readFully( unsigned char* buffer, int size, int offset, int length );
 
         /**
          * Makes an attempt to skip over n bytes of data from the input stream,
@@ -355,13 +333,12 @@ namespace io{
          *
          * @throws IOException if an I/O Error occurs.
          */
-        virtual long long skipBytes( long long num ) throw( io::IOException );
+        virtual long long skipBytes( long long num );
 
     private:
 
         // Used internally to reliably get data from the underlying stream
-        void readAllData( unsigned char* buffer, int length )
-            throw ( decaf::io::IOException, decaf::io::EOFException );
+        void readAllData( unsigned char* buffer, int length );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutput.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutput.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutput.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutput.h Fri Jul  2 19:04:44 2010
@@ -60,8 +60,7 @@ namespace io {
          *
          * @throws IOException if an I/O error is encountered.
          */
-        virtual void writeBoolean( bool value )
-            throw ( decaf::io::IOException ) = 0;
+        virtual void writeBoolean( bool value ) = 0;
 
         /**
          * Writes out a byte to the underlying output stream as a 1-byte
@@ -73,8 +72,7 @@ namespace io {
          *
          * @throws IOException if an I/O error is encountered.
          */
-        virtual void writeByte( unsigned char value )
-            throw ( decaf::io::IOException ) = 0;
+        virtual void writeByte( unsigned char value ) = 0;
 
         /**
          * Writes a short to the underlying output stream as two bytes, high
@@ -86,8 +84,7 @@ namespace io {
          *
          * @throws IOException if an I/O error is encountered.
          */
-        virtual void writeShort( short value )
-            throw ( decaf::io::IOException ) = 0;
+        virtual void writeShort( short value ) = 0;
 
         /**
          * Writes a unsigned short to the bytes message stream as a 2 byte value
@@ -97,8 +94,7 @@ namespace io {
          *
          * @throws IOException if an I/O error is encountered.
          */
-        virtual void writeUnsignedShort( unsigned short value )
-            throw ( decaf::io::IOException ) = 0;
+        virtual void writeUnsignedShort( unsigned short value ) = 0;
 
         /**
          * Writes out a char to the underlying output stream as a one byte
@@ -110,8 +106,7 @@ namespace io {
          *
          * @throws IOException if an I/O error is encountered.
          */
-        virtual void writeChar( char value )
-            throw ( decaf::io::IOException ) = 0;
+        virtual void writeChar( char value ) = 0;
 
         /**
          * Writes an int to the underlying output stream as four bytes, high
@@ -123,8 +118,7 @@ namespace io {
          *
          * @throws IOException if an I/O error is encountered.
          */
-        virtual void writeInt( int value )
-            throw ( decaf::io::IOException ) = 0;
+        virtual void writeInt( int value ) = 0;
 
         /**
          * Writes an 64 bit long to the underlying output stream as eight
@@ -136,8 +130,7 @@ namespace io {
          *
          * @throws IOException if an I/O error is encountered.
          */
-        virtual void writeLong( long long value )
-            throw ( decaf::io::IOException ) = 0;
+        virtual void writeLong( long long value ) = 0;
 
         /**
          * Converts the float argument to an int using the floatToIntBits
@@ -151,8 +144,7 @@ namespace io {
          *
          * @throws IOException if an I/O error is encountered.
          */
-        virtual void writeFloat( float value )
-            throw ( decaf::io::IOException ) = 0;
+        virtual void writeFloat( float value ) = 0;
 
         /**
          * Converts the double argument to a long using the doubleToLongBits
@@ -166,8 +158,7 @@ namespace io {
          *
          * @throws IOException if an I/O error is encountered.
          */
-        virtual void writeDouble( double value )
-            throw ( decaf::io::IOException ) = 0;
+        virtual void writeDouble( double value ) = 0;
 
         /**
          * Writes out the string to the underlying output stream as a
@@ -183,8 +174,7 @@ namespace io {
          *
          * @throws IOException if an I/O error is encountered.
          */
-        virtual void writeBytes( const std::string& value )
-            throw ( decaf::io::IOException ) = 0;
+        virtual void writeBytes( const std::string& value ) = 0;
 
         /**
          * Writes a string to the underlying output stream as a sequence of
@@ -198,8 +188,7 @@ namespace io {
          *
          * @throws IOException if an I/O error is encountered.
          */
-        virtual void writeChars( const std::string& value )
-            throw ( decaf::io::IOException ) = 0;
+        virtual void writeChars( const std::string& value ) = 0;
 
         /**
          * Writes out the string to the underlying output stream as a modeified UTF-8
@@ -214,9 +203,7 @@ namespace io {
          * @throws IOException if an I/O error is encountered.
          * @throws UTFDataFormatException if the encoded size if greater than 65535
          */
-        virtual void writeUTF( const std::string& value )
-            throw ( decaf::io::IOException,
-                    decaf::io::UTFDataFormatException ) = 0;
+        virtual void writeUTF( const std::string& value ) = 0;
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.cpp Fri Jul  2 19:04:44 2010
@@ -38,7 +38,7 @@ DataOutputStream::~DataOutputStream() {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::doWriteByte( const unsigned char c ) throw ( IOException ) {
+void DataOutputStream::doWriteByte( const unsigned char c ) {
     try {
 
         if( outputStream == NULL ) {
@@ -55,10 +55,7 @@ void DataOutputStream::doWriteByte( cons
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+void DataOutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length ) {
 
     try {
 
@@ -103,7 +100,7 @@ void DataOutputStream::doWriteArrayBound
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeBoolean( bool value ) throw ( IOException ) {
+void DataOutputStream::writeBoolean( bool value ) {
     try {
 
         value == true ? buffer[0] = 1 : buffer[0] = 0;
@@ -122,7 +119,7 @@ void DataOutputStream::writeBoolean( boo
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeByte( unsigned char value ) throw ( IOException ) {
+void DataOutputStream::writeByte( unsigned char value ) {
     try {
 
         if( outputStream == NULL ) {
@@ -139,7 +136,7 @@ void DataOutputStream::writeByte( unsign
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeChar( char value ) throw ( IOException ) {
+void DataOutputStream::writeChar( char value ) {
     try {
 
         if( outputStream == NULL ) {
@@ -156,7 +153,7 @@ void DataOutputStream::writeChar( char v
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeShort( short value ) throw ( IOException ) {
+void DataOutputStream::writeShort( short value ) {
     try {
 
         if( outputStream == NULL ) {
@@ -176,9 +173,7 @@ void DataOutputStream::writeShort( short
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeUnsignedShort( unsigned short value )
-    throw ( IOException )
-{
+void DataOutputStream::writeUnsignedShort( unsigned short value ) {
     try {
 
         if( outputStream == NULL ) {
@@ -198,7 +193,8 @@ void DataOutputStream::writeUnsignedShor
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeInt( int value ) throw ( IOException ) {
+void DataOutputStream::writeInt( int value ) {
+
     try {
 
         if( outputStream == NULL ) {
@@ -220,7 +216,8 @@ void DataOutputStream::writeInt( int val
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeLong( long long value ) throw ( IOException ) {
+void DataOutputStream::writeLong( long long value ) {
+
     try {
 
         if( outputStream == NULL ) {
@@ -246,7 +243,7 @@ void DataOutputStream::writeLong( long l
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeFloat( float value ) throw ( IOException ) {
+void DataOutputStream::writeFloat( float value ) {
     try {
         unsigned int lvalue = 0;
         memcpy( &lvalue, &value, sizeof( float ) );
@@ -257,7 +254,7 @@ void DataOutputStream::writeFloat( float
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeDouble( double value ) throw ( IOException ) {
+void DataOutputStream::writeDouble( double value ) {
     try {
         unsigned long long lvalue = 0;
         memcpy( &lvalue, &value, sizeof( double ) );
@@ -268,7 +265,7 @@ void DataOutputStream::writeDouble( doub
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeBytes( const std::string& value ) throw ( IOException ) {
+void DataOutputStream::writeBytes( const std::string& value ) {
     try {
 
         if( value.length() == 0 ) {
@@ -283,7 +280,7 @@ void DataOutputStream::writeBytes( const
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeChars( const std::string& value ) throw ( IOException ) {
+void DataOutputStream::writeChars( const std::string& value ) {
     try {
 
         if( value.length() == 0 ) {
@@ -298,8 +295,7 @@ void DataOutputStream::writeChars( const
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataOutputStream::writeUTF( const std::string& value )
-    throw ( IOException, UTFDataFormatException ) {
+void DataOutputStream::writeUTF( const std::string& value ) {
 
     try {
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.h Fri Jul  2 19:04:44 2010
@@ -71,72 +71,68 @@ namespace io{
         /**
          * {@inheritDoc}
          */
-        virtual void writeBoolean( bool value ) throw ( IOException );
+        virtual void writeBoolean( bool value );
 
         /**
          * {@inheritDoc}
          */
-       virtual void writeByte( unsigned char value ) throw ( IOException );
+       virtual void writeByte( unsigned char value );
 
         /**
          * {@inheritDoc}
          */
-        virtual void writeShort( short value ) throw ( IOException );
+        virtual void writeShort( short value );
 
         /**
          * {@inheritDoc}
          */
-        virtual void writeUnsignedShort( unsigned short value ) throw ( IOException );
+        virtual void writeUnsignedShort( unsigned short value );
 
         /**
          * {@inheritDoc}
          */
-        virtual void writeChar( char value ) throw ( IOException );
+        virtual void writeChar( char value );
 
         /**
          * {@inheritDoc}
          */
-        virtual void writeInt( int value ) throw ( IOException );
+        virtual void writeInt( int value );
 
         /**
          * {@inheritDoc}
          */
-        virtual void writeLong( long long value ) throw ( IOException );
+        virtual void writeLong( long long value );
 
         /**
          * {@inheritDoc}
          */
-        virtual void writeFloat( float value ) throw ( IOException );
+        virtual void writeFloat( float value );
 
         /**
          * {@inheritDoc}
          */
-        virtual void writeDouble( double value ) throw ( IOException );
+        virtual void writeDouble( double value );
 
         /**
          * {@inheritDoc}
          */
-        virtual void writeBytes( const std::string& value ) throw ( IOException );
+        virtual void writeBytes( const std::string& value );
 
         /**
          * {@inheritDoc}
          */
-        virtual void writeChars( const std::string& value ) throw ( IOException );
+        virtual void writeChars( const std::string& value );
 
         /**
          * {@inheritDoc}
          */
-        virtual void writeUTF( const std::string& value )
-            throw ( IOException, UTFDataFormatException );
+        virtual void writeUTF( const std::string& value );
 
     protected:
 
-        virtual void doWriteByte( unsigned char value ) throw ( decaf::io::IOException );
+        virtual void doWriteByte( unsigned char value );
 
-        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 );
 
     private:
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterInputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterInputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterInputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterInputStream.cpp Fri Jul  2 19:04:44 2010
@@ -46,7 +46,7 @@ FilterInputStream::~FilterInputStream() 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int FilterInputStream::available() const throw ( IOException ) {
+int FilterInputStream::available() const {
 
     try {
 
@@ -63,7 +63,7 @@ int FilterInputStream::available() const
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void FilterInputStream::close() throw ( io::IOException ) {
+void FilterInputStream::close() {
 
     try {
         if( !closed && inputStream != NULL ) {
@@ -87,7 +87,7 @@ void FilterInputStream::mark( int readLi
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void FilterInputStream::reset() throw ( IOException ) {
+void FilterInputStream::reset() {
 
     try {
 
@@ -116,9 +116,7 @@ bool FilterInputStream::markSupported() 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long FilterInputStream::skip( long long num )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::UnsupportedOperationException ) {
+long long FilterInputStream::skip( long long num ) {
 
     try {
 
@@ -136,7 +134,7 @@ long long FilterInputStream::skip( long 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int FilterInputStream::doReadByte() throw ( IOException ) {
+int FilterInputStream::doReadByte() {
 
     try {
 
@@ -153,10 +151,7 @@ int FilterInputStream::doReadByte() thro
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int FilterInputStream::doReadArray( unsigned char* buffer, int size )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::IndexOutOfBoundsException,
-            decaf::lang::exceptions::NullPointerException ) {
+int FilterInputStream::doReadArray( unsigned char* buffer, int size ) {
 
     try {
 
@@ -174,10 +169,7 @@ int FilterInputStream::doReadArray( unsi
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int FilterInputStream::doReadArrayBounded( unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::IndexOutOfBoundsException,
-            decaf::lang::exceptions::NullPointerException ) {
+int FilterInputStream::doReadArrayBounded( unsigned char* buffer, int size, int offset, int length ) {
 
     try {
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterInputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterInputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterInputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterInputStream.h Fri Jul  2 19:04:44 2010
@@ -69,19 +69,17 @@ namespace io{
         /**
          * {@inheritDoc}
          */
-        virtual int available() const throw ( decaf::io::IOException );
+        virtual int available() const;
 
         /**
          * {@inheritDoc}
          */
-        virtual void close() throw ( decaf::io::IOException );
+        virtual void close();
 
         /**
          * {@inheritDoc}
          */
-        virtual long long skip( long long num )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::UnsupportedOperationException );
+        virtual long long skip( long long num );
 
         /**
          * {@inheritDoc}
@@ -91,7 +89,7 @@ namespace io{
         /**
          * {@inheritDoc}
          */
-        virtual void reset() throw ( decaf::io::IOException );
+        virtual void reset();
 
         /**
          * {@inheritDoc}
@@ -100,17 +98,11 @@ namespace io{
 
     protected:
 
-        virtual int doReadByte() throw ( decaf::io::IOException );
+        virtual int doReadByte();
 
-        virtual int doReadArray( unsigned char* buffer, int size )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException,
-                    decaf::lang::exceptions::NullPointerException );
-
-        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 doReadArray( unsigned char* buffer, int size );
+
+        virtual int doReadArrayBounded( unsigned char* buffer, int size, int offset, int length );
 
         /**
          * @returns true if this stream has been closed.

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterOutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterOutputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterOutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterOutputStream.cpp Fri Jul  2 19:04:44 2010
@@ -47,7 +47,7 @@ FilterOutputStream::~FilterOutputStream(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void FilterOutputStream::doWriteByte( unsigned char c ) throw ( decaf::io::IOException ) {
+void FilterOutputStream::doWriteByte( unsigned char c ) {
     try {
 
         if( isClosed()  ) {
@@ -63,10 +63,7 @@ void FilterOutputStream::doWriteByte( un
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void FilterOutputStream::doWriteArray( const unsigned char* buffer, int size )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+void FilterOutputStream::doWriteArray( const unsigned char* buffer, int size ) {
 
     try {
 
@@ -85,10 +82,7 @@ void FilterOutputStream::doWriteArray( c
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void FilterOutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+void FilterOutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length ) {
 
     try {
 
@@ -131,7 +125,7 @@ void FilterOutputStream::doWriteArrayBou
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void FilterOutputStream::flush() throw ( decaf::io::IOException ) {
+void FilterOutputStream::flush() {
     try {
 
         if( isClosed() ) {
@@ -147,7 +141,7 @@ void FilterOutputStream::flush() throw (
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void FilterOutputStream::close() throw ( decaf::io::IOException ) {
+void FilterOutputStream::close() {
     try {
         if( !this->closed && this->outputStream != NULL ) {
             this->outputStream->flush();

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterOutputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterOutputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterOutputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/FilterOutputStream.h Fri Jul  2 19:04:44 2010
@@ -81,7 +81,7 @@ namespace io{
          * The flush method of FilterOutputStream calls the flush method of its
          * underlying output stream.
          */
-        virtual void flush() throw ( decaf::io::IOException );
+        virtual void flush();
 
         /**
          * {@inheritDoc}
@@ -89,7 +89,7 @@ namespace io{
          * The close method of FilterOutputStream calls its flush method, and then
          * calls the close method of its underlying output stream.
          */
-        virtual void close() throw ( decaf::io::IOException );
+        virtual void close();
 
         /**
          * {@inheritDoc}
@@ -101,17 +101,11 @@ namespace io{
 
     protected:
 
-        virtual void doWriteByte( unsigned char value ) throw ( decaf::io::IOException );
+        virtual void doWriteByte( unsigned char value );
 
-        virtual void doWriteArray( const unsigned char* buffer, int size )
-            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 )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::NullPointerException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException );
+        virtual void doWriteArray( const unsigned char* buffer, int size );
+
+        virtual void doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length );
 
     protected:
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.cpp Fri Jul  2 19:04:44 2010
@@ -35,7 +35,7 @@ InputStream::~InputStream() {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void InputStream::close() throw( decaf::io::IOException ) {
+void InputStream::close() {
     // Nothing to do by default.
 }
 
@@ -50,14 +50,14 @@ std::string InputStream::toString() cons
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void InputStream::reset() throw ( decaf::io::IOException ) {
+void InputStream::reset() {
     throw IOException(
         __FILE__, __LINE__,
         "Base InputStream class does not support Reset." );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int InputStream::read() throw ( decaf::io::IOException ) {
+int InputStream::read() {
     try{
         return this->doReadByte();
     }
@@ -66,9 +66,7 @@ int InputStream::read() throw ( decaf::i
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int InputStream::read( unsigned char* buffer, int size )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException ) {
+int InputStream::read( unsigned char* buffer, int size ) {
 
     try{
         return this->doReadArray( buffer, size );
@@ -80,10 +78,7 @@ int InputStream::read( unsigned char* bu
 
 ////////////////////////////////////////////////////////////////////////////////
 int InputStream::read( unsigned char* buffer, int size,
-                       int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::IndexOutOfBoundsException,
-            decaf::lang::exceptions::NullPointerException ) {
+                       int offset, int length ) {
 
     try{
         return this->doReadArrayBounded( buffer, size, offset, length );
@@ -95,9 +90,7 @@ int InputStream::read( unsigned char* bu
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long InputStream::skip( long long num )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::UnsupportedOperationException ) {
+long long InputStream::skip( long long num ) {
 
     try{
 
@@ -139,10 +132,7 @@ long long InputStream::skip( long long n
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int InputStream::doReadArray( unsigned char* buffer, int size )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::IndexOutOfBoundsException,
-            decaf::lang::exceptions::NullPointerException ) {
+int InputStream::doReadArray( unsigned char* buffer, int size ) {
 
     try{
         return this->doReadArrayBounded( buffer, size, 0, size );
@@ -154,10 +144,7 @@ int InputStream::doReadArray( unsigned c
 
 ////////////////////////////////////////////////////////////////////////////////
 int InputStream::doReadArrayBounded( unsigned char* buffer, int size,
-                                     int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::IndexOutOfBoundsException,
-            decaf::lang::exceptions::NullPointerException ) {
+                                     int offset, int length ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.h Fri Jul  2 19:04:44 2010
@@ -55,12 +55,14 @@ namespace io{
         virtual ~InputStream();
 
         /**
-         * Closes the InputStream freeing any resources that might have been aquired
+         * Closes the InputStream freeing any resources that might have been acquired
          * during the lifetime of this stream.
          *
          * The default implementation of this method does nothing.
+         *
+         * @throws IOException if an I/O error occurs while closing the InputStream.
          */
-        virtual void close() throw( decaf::io::IOException );
+        virtual void close();
 
         /**
          * Marks the current position in the stream A subsequent call to the
@@ -107,7 +109,7 @@ namespace io{
          *
          * @throws IOException if an I/O error occurs.
          */
-        virtual void reset() throw ( decaf::io::IOException );
+        virtual void reset();
 
         /**
          * Determines if this input stream supports the mark and reset methods.
@@ -135,7 +137,7 @@ namespace io{
          *
          * @throws IOException if an I/O error occurs.
          */
-        virtual int available() const throw ( decaf::io::IOException ) {
+        virtual int available() const {
             return 0;
         }
 
@@ -152,7 +154,7 @@ namespace io{
          *
          * @throws IOException if an I/O error occurs.
          */
-        virtual int read() throw ( decaf::io::IOException );
+        virtual int read();
 
         /**
          * Reads up to size bytes of data from the input stream into an array of bytes. An
@@ -182,9 +184,7 @@ namespace io{
          * @throws IOException if an I/O error occurs.
          * @throws NullPointerException if buffer passed is NULL.
          */
-        virtual int read( unsigned char* buffer, int size )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::NullPointerException );
+        virtual int read( unsigned char* buffer, int size );
 
         /**
          * Reads up to length bytes of data from the input stream into an array of bytes. An
@@ -231,10 +231,7 @@ namespace io{
          * @throws NullPointerException if buffer passed is NULL.
          * @throws IndexOutOfBoundsException if length > size - offset.
          */
-        virtual int read( unsigned char* buffer, int size, int offset, int length )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException,
-                    decaf::lang::exceptions::NullPointerException );
+        virtual int read( unsigned char* buffer, int size, int offset, int length );
 
         /**
          * Skips over and discards n bytes of data from this input stream. The skip
@@ -257,9 +254,7 @@ namespace io{
          * @throws UnsupportedOperationException if the concrete stream class does
          *         not support skipping bytes.
          */
-        virtual long long skip( long long num )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::UnsupportedOperationException );
+        virtual long long skip( long long num );
 
         /**
          * Output a String representation of this object.
@@ -272,65 +267,43 @@ namespace io{
 
     protected:  // Virtual doRead methods that can be overridden to customize subclasses.
 
-        virtual int doReadByte() throw( decaf::io::IOException ) = 0;
+        virtual int doReadByte() = 0;
+
+        virtual int doReadArray( unsigned char* buffer, int size );
 
-        virtual int doReadArray( unsigned char* buffer, int size )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException,
-                    decaf::lang::exceptions::NullPointerException );
-
-        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 );
 
     public:  // Synchronizable
 
-        virtual void lock() throw( decaf::lang::exceptions::RuntimeException ) {
+        virtual void lock() {
             mutex.lock();
         }
 
-        virtual bool tryLock() throw( decaf::lang::exceptions::RuntimeException ) {
+        virtual bool tryLock() {
             return mutex.tryLock();
         }
 
-        virtual void unlock() throw( decaf::lang::exceptions::RuntimeException ) {
+        virtual void unlock() {
             mutex.unlock();
         }
 
-        virtual void wait() throw( decaf::lang::exceptions::RuntimeException,
-                                   decaf::lang::exceptions::IllegalMonitorStateException,
-                                   decaf::lang::exceptions::InterruptedException ) {
-
+        virtual void wait() {
             mutex.wait();
         }
 
-        virtual void wait( long long millisecs )
-            throw( decaf::lang::exceptions::RuntimeException,
-                   decaf::lang::exceptions::IllegalMonitorStateException,
-                   decaf::lang::exceptions::InterruptedException ) {
-
+        virtual void wait( long long millisecs ) {
             mutex.wait( millisecs );
         }
 
-        virtual void wait( long long millisecs, int nanos )
-            throw( decaf::lang::exceptions::RuntimeException,
-                   decaf::lang::exceptions::IllegalArgumentException,
-                   decaf::lang::exceptions::IllegalMonitorStateException,
-                   decaf::lang::exceptions::InterruptedException ) {
-
+        virtual void wait( long long millisecs, int nanos ) {
             mutex.wait( millisecs, nanos );
         }
 
-        virtual void notify() throw( decaf::lang::exceptions::RuntimeException,
-                                     decaf::lang::exceptions::IllegalMonitorStateException ) {
-
+        virtual void notify() {
             mutex.notify();
         }
 
-        virtual void notifyAll() throw( decaf::lang::exceptions::RuntimeException,
-                                        decaf::lang::exceptions::IllegalMonitorStateException ) {
-
+        virtual void notifyAll() {
             mutex.notifyAll();
         }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStreamReader.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStreamReader.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStreamReader.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStreamReader.cpp Fri Jul  2 19:04:44 2010
@@ -55,7 +55,7 @@ InputStreamReader::~InputStreamReader() 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void InputStreamReader::close() throw( decaf::io::IOException ) {
+void InputStreamReader::close() {
 
     try{
 
@@ -69,7 +69,7 @@ void InputStreamReader::close() throw( d
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool InputStreamReader::ready() const throw( decaf::io::IOException ) {
+bool InputStreamReader::ready() const {
 
     try{
         checkClosed();
@@ -84,10 +84,7 @@ bool InputStreamReader::ready() const th
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int InputStreamReader::doReadArrayBounded( char* buffer, int size, int offset, int length )
-        throw( decaf::io::IOException,
-               decaf::lang::exceptions::NullPointerException,
-               decaf::lang::exceptions::IndexOutOfBoundsException ) {
+int InputStreamReader::doReadArrayBounded( char* buffer, int size, int offset, int length ) {
 
     try{
         checkClosed();
@@ -105,7 +102,7 @@ int InputStreamReader::doReadArrayBounde
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void InputStreamReader::checkClosed() const throw( decaf::io::IOException ) {
+void InputStreamReader::checkClosed() const {
     if( closed ) {
         throw IOException( __FILE__, __LINE__, "This Reader is Closed" );
     }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStreamReader.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStreamReader.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStreamReader.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStreamReader.h Fri Jul  2 19:04:44 2010
@@ -72,18 +72,15 @@ namespace io {
 
         virtual ~InputStreamReader();
 
-        virtual void close() throw( decaf::io::IOException );
+        virtual void close();
 
-        virtual bool ready() const throw( decaf::io::IOException );
+        virtual bool ready() const;
 
     protected:
 
-        virtual int doReadArrayBounded( char* buffer, int size, int offset, int length )
-            throw( decaf::io::IOException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::lang::exceptions::NullPointerException );
+        virtual int doReadArrayBounded( char* buffer, int size, int offset, int length );
 
-        virtual void checkClosed() const throw( decaf::io::IOException );
+        virtual void checkClosed() const;
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/OutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/OutputStream.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/OutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/OutputStream.cpp Fri Jul  2 19:04:44 2010
@@ -36,12 +36,12 @@ OutputStream::~OutputStream() {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void OutputStream::close() throw( decaf::io::IOException ) {
+void OutputStream::close() {
     // Nothing to do by default.
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void OutputStream::flush() throw( decaf::io::IOException ) {
+void OutputStream::flush() {
     // Nothing to do by default.
 }
 
@@ -51,7 +51,7 @@ std::string OutputStream::toString() con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void OutputStream::write( unsigned char c ) throw ( decaf::io::IOException ) {
+void OutputStream::write( unsigned char c ) {
 
     try{
         this->doWriteByte( c );
@@ -61,10 +61,7 @@ void OutputStream::write( unsigned char 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void OutputStream::write( const unsigned char* buffer, int size )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+void OutputStream::write( const unsigned char* buffer, int size ) {
 
     try{
         this->doWriteArray( buffer, size );
@@ -76,10 +73,7 @@ void OutputStream::write( const unsigned
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void OutputStream::write( const unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+void OutputStream::write( const unsigned char* buffer, int size, int offset, int length ) {
 
     try{
         this->doWriteArrayBounded( buffer, size, offset, length );
@@ -91,10 +85,7 @@ void OutputStream::write( const unsigned
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void OutputStream::doWriteArray( const unsigned char* buffer, int size )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+void OutputStream::doWriteArray( const unsigned char* buffer, int size ) {
 
     try{
         this->doWriteArrayBounded( buffer, size, 0, size );
@@ -104,10 +95,7 @@ void OutputStream::doWriteArray( const u
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void OutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length )
-    throw ( decaf::io::IOException,
-            decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IndexOutOfBoundsException ) {
+void OutputStream::doWriteArrayBounded( const unsigned char* buffer, int size, int offset, int length ) {
 
     try{
 



Mime
View raw message