@Override
	public String convert(String inputUrl, String outputPath) {
		
		// TODO Auto-generated method stub
		// http://www.iana.org/assignments/character-sets/character-sets.xhtml
		//  编码设置的词要用上面地址里的标准
		OutputStream fileOut;
		try {
			if(!validName(inputUrl))
			{
				return null;
			}
			
			fileOut = new FileOutputStream(outputPath);
			XMLDocumentFilter writer = new Writer(fileOut,this.encoding);
			Purifier purifier = new Purifier();
			XMLDocumentFilter [] filters = {writer,purifier};
			
			DOMParser parser = new DOMParser();
			parser.setProperty("http://cyberneko.org/html/properties/default-encoding", this.inputEncoding);
			parser.setProperty("http://cyberneko.org/html/properties/filters", 
					filters);
			parser.parse(inputUrl);
			
			return outputPath;
			
			
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SAXNotRecognizedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SAXNotSupportedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SAXException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
		
		
	}