/[classpath]/classpath/vm/reference/java/io/VMFile.java
ViewVC logotype

Diff of /classpath/vm/reference/java/io/VMFile.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mkoch, Mon Apr 26 20:51:32 2004 UTC revision 1.2 by jfrijters, Tue Jul 27 08:44:08 2004 UTC
# Line 191  final class VMFile Line 191  final class VMFile
191                    
192          return path.substring(pos + File.separator.length());          return path.substring(pos + File.separator.length());
193    }    }
194    
195      /**
196       * This method returns a canonical representation of the pathname of
197       * this file.  The actual form of the canonical representation is
198       * different.  On the GNU system, the canonical form differs from the
199       * absolute form in that all relative file references to "." and ".."
200       * are resolved and removed.
201       * <p>
202       * Note that this method, unlike the other methods which return path
203       * names, can throw an IOException.  This is because native method
204       * might be required in order to resolve the canonical path
205       *
206       * @exception IOException If an error occurs
207       */
208      public String toCanonicalForm(String path) throws IOException
209      {
210            // FIXME: this only works on UNIX
211            return PlatformHelper.toCanonicalForm(path);
212      }
213  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26