private static String removeDotSegments ( String path ) { Deque < String > outputBuffer = new LinkedList < String > ( ) ; String input = path == null ? EMPTY : path ; while ( ! input . isEmpty ( ) ) { input = processInput ( outputBuffer , input ) ; } return assembleInOrder ( outputBuffer ) ; }
5 . 2 . 4 . Remove Dot Segments