src/java.base/share/classes/sun/nio/ch/NativeDispatcher.java
branchunixdomainchannels
changeset 58801 119ac9128c1b
parent 47216 71c04702a3d5
child 58848 c3df0f8b6d93
--- a/src/java.base/share/classes/sun/nio/ch/NativeDispatcher.java	Fri Oct 25 14:50:16 2019 +0100
+++ b/src/java.base/share/classes/sun/nio/ch/NativeDispatcher.java	Fri Oct 25 15:56:35 2019 +0100
@@ -32,10 +32,10 @@
  * for read and write operations.
  */
 
-abstract class NativeDispatcher
+public abstract class NativeDispatcher
 {
 
-    abstract int read(FileDescriptor fd, long address, int len)
+    public abstract int read(FileDescriptor fd, long address, int len)
         throws IOException;
 
     /**
@@ -55,7 +55,7 @@
     abstract long readv(FileDescriptor fd, long address, int len)
         throws IOException;
 
-    abstract int write(FileDescriptor fd, long address, int len)
+    public abstract int write(FileDescriptor fd, long address, int len)
         throws IOException;
 
     int pwrite(FileDescriptor fd, long address, int len, long position)
@@ -67,13 +67,13 @@
     abstract long writev(FileDescriptor fd, long address, int len)
         throws IOException;
 
-    abstract void close(FileDescriptor fd) throws IOException;
+    public abstract void close(FileDescriptor fd) throws IOException;
 
     // Prepare the given fd for closing by duping it to a known internal fd
     // that's already closed.  This is necessary on some operating systems
     // (Solaris and Linux) to prevent fd recycling.
     //
-    void preClose(FileDescriptor fd) throws IOException {
+    public void preClose(FileDescriptor fd) throws IOException {
         // Do nothing by default; this is only needed on Unix
     }