/[classpath]/classpath/gnu/java/nio/channels/FileChannelImpl.java
ViewVC logotype

Diff of /classpath/gnu/java/nio/channels/FileChannelImpl.java

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

revision 1.7.2.4 by gnu_andrew, Fri May 20 18:20:54 2005 UTC revision 1.7.2.5 by gnu_andrew, Sun Jun 5 19:36:36 2005 UTC
# Line 97  public final class FileChannelImpl exten Line 97  public final class FileChannelImpl exten
97    
98    private int mode;    private int mode;
99    
100    public FileChannelImpl ()    /* Open a file.  MODE is a combination of the above mode flags. */
101      /* This is a static factory method, so that VM implementors can decide
102       * substitute subclasses of FileChannelImpl. */
103      public static FileChannelImpl create(File file, int mode)
104        throws FileNotFoundException
105    {    {
106        return new FileChannelImpl(file, mode);
107    }    }
108    
109    /* Open a file.  MODE is a combination of the above mode flags. */    private FileChannelImpl(File file, int mode)
110    public FileChannelImpl (File file, int mode) throws FileNotFoundException      throws FileNotFoundException
111    {    {
112      final String path = file.getPath();      final String path = file.getPath();
113      fd = open (path, mode);      fd = open (path, mode);

Legend:
Removed from v.1.7.2.4  
changed lines
  Added in v.1.7.2.5

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