Class Common


  • final class Common
    extends java.lang.Object
    Helper class, providing common methods.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int _fd  
    • Constructor Summary

      Constructors 
      Constructor Description
      Common​(int fd)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int getFD()  
      (package private) int read​(java.nio.ByteBuffer dst)  
      (package private) long read​(java.nio.ByteBuffer[] dsts, int offset, int length)  
      (package private) void setFD​(int fd)  
      (package private) int write​(java.nio.ByteBuffer src)  
      (package private) long write​(java.nio.ByteBuffer[] srcs, int offset, int length)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _fd

        private int _fd
    • Constructor Detail

      • Common

        Common​(int fd)
    • Method Detail

      • setFD

        void setFD​(int fd)
      • getFD

        int getFD()
      • read

        int read​(java.nio.ByteBuffer dst)
          throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        long read​(java.nio.ByteBuffer[] dsts,
                  int offset,
                  int length)
           throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        int write​(java.nio.ByteBuffer src)
           throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        long write​(java.nio.ByteBuffer[] srcs,
                   int offset,
                   int length)
            throws java.io.IOException
        Throws:
        java.io.IOException