IT. Expert System.

Android Reference

ReadableByteChannel


java.nio.channels

Interface ReadableByteChannel

    • Method Summary

      Methods
      Modifier and Type Method and Description
      int read(ByteBuffer buffer)
      Reads bytes from the channel into the given buffer.
    • Method Detail

      • read

        int read(ByteBuffer buffer)
                 throws IOException
        Reads bytes from the channel into the given buffer.

        The maximum number of bytes that will be read is the remaining number of bytes in the buffer when the method is invoked. The bytes will be read into the buffer starting at the buffer's current position.

        The call may block if other threads are also attempting to read from the same channel.

        Upon completion, the buffer's position is updated to the end of the bytes that were read. The buffer's limit is not changed.

        Parameters:
        buffer - the byte buffer to receive the bytes.
        Returns:
        the number of bytes actually read.
        Throws:
        AsynchronousCloseException - if another thread closes the channel during the read.
        ClosedByInterruptException - if another thread interrupts the calling thread while the operation is in progress. The interrupt state of the calling thread is set and the channel is closed.
        ClosedChannelException - if the channel is closed.
        IOException - another I/O error occurs, details are in the message.
        NonReadableChannelException - if the channel was not opened for reading.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 566 / 248377771. Delta: 0.00564 с