Interface ElfByteChannel

  • All Superinterfaces:
    java.lang.AutoCloseable, java.nio.channels.ByteChannel, java.nio.channels.Channel, java.io.Closeable, java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel
    All Known Implementing Classes:
    ElfFileChannel, ElfZipFileChannel

    public interface ElfByteChannel
    extends java.nio.channels.ByteChannel
    • Method Summary

      Modifier and Type Method Description
      long position()  
      ElfByteChannel position​(long newPosition)  
      int read​(java.nio.ByteBuffer dst)  
      int read​(java.nio.ByteBuffer dst, long position)  
      long size()  
      ElfByteChannel truncate​(long size)  
      int write​(java.nio.ByteBuffer src)  
      • Methods inherited from interface java.nio.channels.Channel

        close, isOpen
    • Method Detail

      • position

        long position()
               throws java.io.IOException
        Throws:
        java.io.IOException
      • position

        ElfByteChannel position​(long newPosition)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        int read​(java.nio.ByteBuffer dst)
          throws java.io.IOException
        Specified by:
        read in interface java.nio.channels.ReadableByteChannel
        Throws:
        java.io.IOException
      • read

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

        long size()
           throws java.io.IOException
        Throws:
        java.io.IOException
      • truncate

        ElfByteChannel truncate​(long size)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        int write​(java.nio.ByteBuffer src)
           throws java.io.IOException
        Specified by:
        write in interface java.nio.channels.WritableByteChannel
        Throws:
        java.io.IOException