Пример #1
0
            public override void close()
            {
                int size = _out.size();

                _out.close();

                if (size < _contentLength)
                {
                    throw new IOException("Cannot close stream until all bytes are written.");
                }
            }