View Javadoc

1   /*******************************************************************************
2    * Copyright (c) 2009 Ordina and committers to Mod4j
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the Eclipse Public License v1.0
5    * which accompanies this distribution, and is available at
6    * http://www.eclipse.org/legal/epl-v10.html
7    *
8    * Contributors:
9    *     Ordina - initial implementation
10   *******************************************************************************/
11  package org.mod4j.dslcommon.io;
12  
13  import java.io.File;
14  
15  /**
16   * @author anneke
17   * 
18   */
19  public class DirectoryWalkerTester {
20  
21      static public void main(String[] args) {
22          File file = new File("E:\\");
23          DirectoryWalker walker = new DirectoryWalker();
24          DirectoryVisitorImpl visitor = new DirectoryVisitorImpl();
25          try {
26              walker.walk(file, visitor);
27          } catch (Exception e) {
28              // TODO Auto-generated catch block
29              e.printStackTrace();
30          }
31      }
32  
33  }