classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] RFC: FileChannelImpl factory method instead of constructor


From: Jeroen Frijters
Subject: [cp-patches] RFC: FileChannelImpl factory method instead of constructor
Date: Sat, 28 May 2005 13:51:21 +0200

Hi,

I'd like to be able to substitute different subclasses (based on what OS
we're running on) for FileChannelImpl, so I'd like to change the public
constructor to a factory method.

Any objections/comments?

Regards,
Jeroen

2005-05-28  Jeroen Frijters  <address@hidden>

        * gnu/java/nio/channels/FileChannelImpl.java
        (FileChannelImpl()): Removed.
        (FileChannelImpl(File,int)): Made private.
        (create): New method.

        * java/io/FileInputStream.java,
        java/io/FileOutputStream.java,
        java/io/RandomAccessFile.java:
        Updated construction of FileChannelImpl instance.

        

Attachment: FileChannelImpl.patch.txt
Description: FileChannelImpl.patch.txt


reply via email to

[Prev in Thread] Current Thread [Next in Thread]