1 23 24 29 30 package com.sun.enterprise.util.io; 31 import java.io.*; 32 import java.util.*; 33 34 39 public class FileListerRelative extends FileLister 40 { 41 public FileListerRelative(File f) 42 { 43 super(f); 44 } 45 46 protected boolean relativePath() 47 { 48 return true; 49 } 50 51 public static void main (String args[]) 52 { 53 54 File f = new File("C:/temp/junk"); 55 FileListerRelative flr = new FileListerRelative(f); 56 String [] list = flr.getFiles(); 57 58 for(int i = 0; i < list.length; i++) 59 System.out.println(list[i]); 60 } 61 } 62 | Popular Tags |