Using system;
Using system. text;
Using system. Text. regularexpressions;
Using system. IO;
Using system. Web;
Namespace dreamzone. Core
{
/// <Summary>
/// Summary of cg2bfilter.
/// </Summary>
Public class cg2bfilter: Stream
{
Stream responsestream;
Long position;
Stringbuilder responsehtml;
Public cg2bfilter (Stream inputstream)
{
Responsestream = inputstream;
Responsehtml = new stringbuilder ();
}
# Region filter overrides
Public override bool Canread
{
Get {return true ;}
}
Public override bool canseek
{
Get {return true ;}
}
Public override bool canwrite
{
Get {return true ;}
}
Public override void close ()
{
Responsestream. Close ();
}
Public override void flush ()
{
Responsestream. Flush ();
}
Public override long length
{
Get {return 0 ;}
}
Public override long position
{
Get {return position ;}
Set {position = value ;}
}
Public override long seek (long offset, seekorigin origin)
{
Return responsestream. Seek (offset, origin );
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.