Construct a "Parser" instant from the original bytes

丛林 <[email protected]> Sun, 1 May 2011 10:31:15 +0800
Newsgroups gmane.comp.parsers.htmlparser.user
Message-ID <[email protected]>
Hi, I am a freshman in htmlparser area.

My problem is:
How can I construct a "Parser" instant from the original bytes?
I have to construct a new "Parser" in this way because the original
bytes is already read from a file to the memory.


For example:
File f = new File("/home/test.html");
bytes[] b = bufferstreamreadfrom(f);
Parser p = new Parser(p);                    // how can i construct ?



Thanks for any suggestion :-)

Best Wishes,

-LIn

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd