use interface FileSystem which has implementation for each type of file system, such HDFS and Local fs
2011/5/9 ltomuno <ltom...@163.com> > using java > new File("/tmp/common") > but > /tmp/common is a HDFS file > how to implement this feature? > thanks > > > > -- Best Regards Jeff Zhang