Java ByteBuffer Get getBoolean(java.nio.ByteBuffer buffer)

Here you can find the source of getBoolean(java.nio.ByteBuffer buffer)

Description

get Boolean

License

Open Source License

Declaration

public static boolean getBoolean(java.nio.ByteBuffer buffer) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean getBoolean(java.nio.ByteBuffer buffer) {
        return !((byte) 0 == buffer.get()); // 0 = false, non-zero = true
    }/* w w w  . j a v  a 2s  . c  o m*/
}

Related

  1. getBit(ByteBuffer in, int pos)
  2. getBitString(java.nio.ByteBuffer buffer, int lenBits)
  3. getBoolean(ByteBuffer b)
  4. getBoolean(ByteBuffer bb)
  5. getBoolean(ByteBuffer bytes)
  6. getBuffer(ByteBuffer buffer, int len)
  7. getBufferBytes(ByteBuffer bb)
  8. getByte(ByteBuffer bb)
  9. getByte(ByteBuffer byteBuffer)