NpsHtmlFetcher is used for fetch a web html,also images from a remote server.
| void |
AddNameValuePair(String name,String value) Set parameters for login."name" is the parameter name,"value" is the parameter value.e.g. AddNameValuePair("username","system"); AddNameValuePair("password","manager"); |
| void |
Login(String url) Login |
| NpsHtmlParser |
GetHtmlParser(String url,String encoding) throws Exception Retrieve the web page from url,and build into NpsHtmlParser Object |
| void |
SaveHtml2File(String url,NpsFile output) throws IOException Retrieve the web page from url,and save to file |
| void |
GetBinary(String url,NpsFile output) throws IOException Retrieve binary datas from url(for example,image),and save to file |
| void |
ScaleTo(NpsFile src,NpsFile dest,int width,int height) throws Exception Scale the image and save to other file width=-1 indicate to geometric scale by height;height=-1 indicate to geometric scale by width |