Java ByteBuffer to Int readInt16(ByteBuffer bb)

Here you can find the source of readInt16(ByteBuffer bb)

Description

read Int

License

LGPL

Declaration

public static int readInt16(ByteBuffer bb) throws IOException 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.io.IOException;

import java.nio.ByteBuffer;

public class Main {
    public static int readInt16(ByteBuffer bb) throws IOException {
        return bb.getShort();
    }/*w ww .  ja  va  2  s.c  om*/
}

Related

  1. readInt(ByteBuffer buf, int length)
  2. readInt(ByteBuffer buf, int pos)
  3. readInt(ByteBuffer buffer)
  4. readInt(ByteBuffer buffer)
  5. readInt(ReadableByteChannel channel, ByteBuffer buffer)
  6. readInt32(ByteBuffer bb)
  7. readInt8(final ByteBuffer buffer)
  8. readIntEquals(ByteBuffer buf, int i, int j)
  9. readIntLE(ByteBuffer buf, int i)