Package java.nio

Examples of java.nio.IntBuffer.remaining()


                    while (input.read(buffer) > 0) {
                        ;
                    }
                    buffer.flip();
                    IntBuffer ibuffer = buffer.asIntBuffer();
                    int ibuffRemain = Math.min(ibuffer.remaining(), countIDs);
                    ibuffer.get(streams, 0, ibuffRemain);
                    for (int i = 0; i < ibuffRemain; i++) {
                        if (streams[i] == meta.streamID) {
                            offsetFound = offset + i + 1;
                            //TODO break and seek ahead based on countIDs
View Full Code Here


  public void readFully(int[] i, int off, int len) throws IOException
  {
    checkClosed();
   
    IntBuffer buffer = this.buffer.asIntBuffer();
    if (len > buffer.remaining())
      throw new EOFException();
   
    buffer.get(i, off, len);
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.