public virtual int Available () { if (Wrapped is WrappedSystemStream) return ((WrappedSystemStream)Wrapped).InputStream.Available (); else return 0; }