title: Resolve a path name with .. parent directory specifiers ("dot dot") without resolving symlinks
body: <p>Given a path like <code>/a/./b/c/../d</code>, I would like to remove all the "current directory" indicators (i.e., period) and "parent directory" indicators (i.e., ..), giving <code>a/b/d</code>.</p>
  
  <p>I could use <code>File.getCanonicalPath()</code>, but that also resolves symlinks, which I don't want. </p>
  
  <p>Any simple way?  That is, simpler than writing a tokenizer and handling it all myself.</p>
  
  <p>Bonus points if you can tell me what the right name for '.' and '..' are in this context.</p>