jdk/src/solaris/classes/sun/nio/ch/SocketDispatcher.java
changeset 2057 3acf8e5e2ca0
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
2056:115e09b7a004 2057:3acf8e5e2ca0
     1 /*
     1 /*
     2  * Copyright 2000-2005 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 2000-2009 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Sun designates this
     7  * published by the Free Software Foundation.  Sun designates this
    34 
    34 
    35 class SocketDispatcher extends NativeDispatcher
    35 class SocketDispatcher extends NativeDispatcher
    36 {
    36 {
    37 
    37 
    38     int read(FileDescriptor fd, long address, int len) throws IOException {
    38     int read(FileDescriptor fd, long address, int len) throws IOException {
    39         return FileDispatcher.read0(fd, address, len);
    39         return FileDispatcherImpl.read0(fd, address, len);
    40     }
    40     }
    41 
    41 
    42     long readv(FileDescriptor fd, long address, int len) throws IOException {
    42     long readv(FileDescriptor fd, long address, int len) throws IOException {
    43         return FileDispatcher.readv0(fd, address, len);
    43         return FileDispatcherImpl.readv0(fd, address, len);
    44     }
    44     }
    45 
    45 
    46     int write(FileDescriptor fd, long address, int len) throws IOException {
    46     int write(FileDescriptor fd, long address, int len) throws IOException {
    47         return FileDispatcher.write0(fd, address, len);
    47         return FileDispatcherImpl.write0(fd, address, len);
    48     }
    48     }
    49 
    49 
    50     long writev(FileDescriptor fd, long address, int len) throws IOException {
    50     long writev(FileDescriptor fd, long address, int len) throws IOException {
    51         return FileDispatcher.writev0(fd, address, len);
    51         return FileDispatcherImpl.writev0(fd, address, len);
    52     }
    52     }
    53 
    53 
    54     void close(FileDescriptor fd) throws IOException {
    54     void close(FileDescriptor fd) throws IOException {
    55         FileDispatcher.close0(fd);
    55         FileDispatcherImpl.close0(fd);
    56     }
    56     }
    57 
    57 
    58     void preClose(FileDescriptor fd) throws IOException {
    58     void preClose(FileDescriptor fd) throws IOException {
    59         FileDispatcher.preClose0(fd);
    59         FileDispatcherImpl.preClose0(fd);
    60     }
    60     }
    61 }
    61 }