code: public void moveThisFile(File fileSource, File fileDestDir, String strDestName)
      {
          try   {
              fileDestDir.mkdirs();
              FileInputStream fileIn = new FileInputStream(fileSource);
              InputStreamReader inStream = new InputStreamReader(fileIn);
              StreamSource source = new StreamSource(inStream);
          
              System.out.println(fileDestDir + " " + strDestName);
              File fileDest = new File(fileDestDir, strDestName);
              fileDest.createNewFile();
              FileOutputStream fileOut = new FileOutputStream(fileDest);
              PrintWriter dataOut = new PrintWriter(fileOut);
              StreamResult dest = new StreamResult(dataOut);
          
              m_transformer.transform(source, dest);
              
              dataOut.close();
              fileOut.close();
          
              inStream.close();
              fileIn.close();
          } catch (TransformerException ex)  {
              ex.printStackTrace();
          } catch (FileNotFoundException ex)  {
              ex.printStackTrace();
          } catch (IOException ex)    {
              ex.printStackTrace();
          }
      }
docs: Do whatever processing that needs to be done on this file.