public int size() {
            return size;
        }
Returns the number of bytes written out through the stream.

@return the number of bytes written to the stream.
xmppserver/src/main/java/org/jivesoftware/util/cache/CacheSizes.java