jlibs.core.io
Class FileNavigator

java.lang.Object
  extended by jlibs.core.graph.Ladder<E>
      extended by jlibs.core.graph.Navigator2<File>
          extended by jlibs.core.io.FileNavigator
All Implemented Interfaces:
Convertor<File,String>, Navigator<File>

public class FileNavigator
extends Navigator2<File>
implements Convertor<File,String>

Author:
Santhosh Kumar T

Field Summary
static FileNavigator INSTANCE
           
 
Constructor Summary
FileNavigator(FileFilter filter)
           
 
Method Summary
 Sequence<? extends File> children(File elem)
           
 String convert(File source)
           
 String getRelativePath(File fromFile, File toFile)
           
 File parent(File elem)
           
 
Methods inherited from class jlibs.core.graph.Navigator2
getRelativePath, resolve
 
Methods inherited from class jlibs.core.graph.Ladder
getAncestor, getHeight, getHeight, getParent, getPath, getRelativePath, getRoot, getSharedAncestor, isAncestor, isRelated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final FileNavigator INSTANCE
Constructor Detail

FileNavigator

public FileNavigator(FileFilter filter)
Method Detail

parent

public File parent(File elem)
Specified by:
parent in class Ladder<File>

children

public Sequence<? extends File> children(File elem)
Specified by:
children in interface Navigator<File>

convert

public String convert(File source)
Specified by:
convert in interface Convertor<File,String>

getRelativePath

public String getRelativePath(File fromFile,
                              File toFile)


Copyright © 2018. All rights reserved.