@Override
        public int available() throws IOException {
            return originalStream.available();
        }
Original input stream being wrapped to count incmoing traffic.
xmppserver/src/main/java/org/jivesoftware/openfire/net/ServerTrafficCounter.java