@Override
	public List<String> convertAll(String inputDir, String outputDir) {
		// TODO Auto-generated method stub
		
		if(! new File(outputDir).isDirectory())
		{
			System.out.println("output dir not exist");
			System.exit(-1);
		}
		
		File f = new File(inputDir);
		List<String> xhtmls = new ArrayList<String>();
		if(f.isDirectory())
		{
//			String [] fileArr  =f.list();
			String outDir = new File(outputDir).getAbsolutePath();
			File [] files = f.listFiles();
			for(File tmpFile: files)
			{
				if(tmpFile.isFile() && validName(tmpFile.getAbsolutePath()))
				{
					String out = convert(tmpFile.toURI().toString(),
							outDir+"\\"+createXhtmlName(tmpFile.getName()) );
					if(out!=null)
					{
						xhtmls.add(out);
					}
				}
			}
		}
		else
		{
			System.out.println("error:  your input is not a dirctory!!");
			System.exit(-1);
		}
		
		return xhtmls;
		
		
	}