/[classpath]/classpath/java/io/FileOutputStream.java
ViewVC logotype

Diff of /classpath/java/io/FileOutputStream.java

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

revision 1.19 by mkoch, Mon Mar 24 07:27:52 2003 UTC revision 1.20 by mkoch, Tue Mar 25 12:20:50 2003 UTC
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
38    
39  package java.io;  package java.io;
40    
 import gnu.classpath.Configuration;  
41  import java.nio.channels.FileChannel;  import java.nio.channels.FileChannel;
42  import gnu.java.nio.FileChannelImpl;  import gnu.java.nio.FileChannelImpl;
43    
# Line 207  public class FileOutputStream extends Ou Line 206  public class FileOutputStream extends Ou
206     *     *
207     * @exception IOException If an error occurs     * @exception IOException If an error occurs
208     */     */
209    public final FileDescriptor getFD() throws IOException    public final FileDescriptor getFD () throws IOException
210    {    {
211        if (! fd.valid())
212          throw new IOException ();
213      return fd;      return fd;
214    }    }
215    
# Line 219  public class FileOutputStream extends Ou Line 220  public class FileOutputStream extends Ou
220     *     *
221     * @exception IOException If an error occurs     * @exception IOException If an error occurs
222     */     */
223    public void write(int b) throws IOException    public void write (int b) throws IOException
224    {    {
225      fd.write (b);      fd.write (b);
226    }    }
# Line 261  public class FileOutputStream extends Ou Line 262  public class FileOutputStream extends Ou
262     */     */
263    public void close () throws IOException    public void close () throws IOException
264    {    {
265      fd.close ();      if (fd.valid())
266          fd.close();
267    }    }
268    
269    /**    /**

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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