activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r591338 - /activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/ByteArrayInputStream.h
Date Fri, 02 Nov 2007 14:05:54 GMT
Author: tabish
Date: Fri Nov  2 07:05:53 2007
New Revision: 591338

URL: http://svn.apache.org/viewvc?rev=591338&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103
http://issues.apache.org/activemq/browse/AMQCPP-136

Modified:
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/ByteArrayInputStream.h

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/ByteArrayInputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/ByteArrayInputStream.h?rev=591338&r1=591337&r2=591338&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/ByteArrayInputStream.h (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/io/ByteArrayInputStream.h Fri Nov  2
07:05:53 2007
@@ -27,11 +27,13 @@
 namespace io{
 
     /**
-     * Simple implementation of InputStream that wraps around
-     * a std::vector<unsigned char>.
+     * Simple implementation of InputStream that wraps around an STL Vector
+     * std::vector<unsigned char>.
+     *
+     * Closing a ByteArrayInputStream has no effect. The methods in this class can be
+     * called after the stream has been closed without generating an IOException.
      */
-    class DECAF_API ByteArrayInputStream : public InputStream
-    {
+    class DECAF_API ByteArrayInputStream : public InputStream {
     private:
 
         /**
@@ -136,7 +138,7 @@
          * @throws Exception
          */
         virtual void wait( unsigned long millisecs ) throw( lang::Exception ){
-            mutex.wait(millisecs);
+            mutex.wait( millisecs );
         }
 
         /**
@@ -200,7 +202,7 @@
          * Resets the read index to the beginning of the byte
          * array.
          */
-        virtual void reset() throw ( lang::Exception);
+        virtual void reset() throw ( lang::Exception );
 
         /**
          * Skips over and discards n bytes of data from this input stream. The



Mime
View raw message