congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
IoBridge.read
Code IndexAdd Tabnine to your IDE (free)

How to use
read
method
in
libcore.io.IoBridge

Best Java code snippets using libcore.io.IoBridge.read (Showing top 20 results out of 315)

origin: robovm/robovm

@Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: robovm/robovm

/**
 * Reads up to {@code byteCount} bytes from the current position in this file
 * and stores them in the byte array {@code buffer} starting at {@code
 * byteOffset}. Blocks until at least one byte has been
 * read, the end of the file is detected, or an exception is thrown.
 * Returns the number of bytes actually read or -1 if the end of the stream has been reached.
 * See also {@link #readFully}.
 *
 * @throws IndexOutOfBoundsException
 *     if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
 * @throws IOException
 *             if this file is closed or another I/O error occurs.
 */
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: robovm/robovm

while (IoBridge.read(wakeupIn, buffer, 0, 1) > 0) {
origin: MobiVM/robovm

@Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: com.gluonhq/robovm-rt

@Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: com.mobidevelop.robovm/robovm-rt

@Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: ibinti/bugvm

@Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: com.bugvm/bugvm-rt

@Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: ibinti/bugvm

/**
 * Reads up to {@code byteCount} bytes from the current position in this file
 * and stores them in the byte array {@code buffer} starting at {@code
 * byteOffset}. Blocks until at least one byte has been
 * read, the end of the file is detected, or an exception is thrown.
 * Returns the number of bytes actually read or -1 if the end of the stream has been reached.
 * See also {@link #readFully}.
 *
 * @throws IndexOutOfBoundsException
 *     if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
 * @throws IOException
 *             if this file is closed or another I/O error occurs.
 */
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: FlexoVM/flexovm

@Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: MobiVM/robovm

/**
 * Reads up to {@code byteCount} bytes from the current position in this file
 * and stores them in the byte array {@code buffer} starting at {@code
 * byteOffset}. Blocks until at least one byte has been
 * read, the end of the file is detected, or an exception is thrown.
 * Returns the number of bytes actually read or -1 if the end of the stream has been reached.
 * See also {@link #readFully}.
 *
 * @throws IndexOutOfBoundsException
 *     if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
 * @throws IOException
 *             if this file is closed or another I/O error occurs.
 */
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: FlexoVM/flexovm

/**
 * Reads up to {@code byteCount} bytes from the current position in this file
 * and stores them in the byte array {@code buffer} starting at {@code
 * byteOffset}. Blocks until at least one byte has been
 * read, the end of the file is detected, or an exception is thrown.
 * Returns the number of bytes actually read or -1 if the end of the stream has been reached.
 * See also {@link #readFully}.
 *
 * @throws IndexOutOfBoundsException
 *     if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
 * @throws IOException
 *             if this file is closed or another I/O error occurs.
 */
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Reads up to {@code byteCount} bytes from the current position in this file
 * and stores them in the byte array {@code buffer} starting at {@code
 * byteOffset}. Blocks until at least one byte has been
 * read, the end of the file is detected, or an exception is thrown.
 * Returns the number of bytes actually read or -1 if the end of the stream has been reached.
 * See also {@link #readFully}.
 *
 * @throws IndexOutOfBoundsException
 *     if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
 * @throws IOException
 *             if this file is closed or another I/O error occurs.
 */
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: com.bugvm/bugvm-rt

/**
 * Reads up to {@code byteCount} bytes from the current position in this file
 * and stores them in the byte array {@code buffer} starting at {@code
 * byteOffset}. Blocks until at least one byte has been
 * read, the end of the file is detected, or an exception is thrown.
 * Returns the number of bytes actually read or -1 if the end of the stream has been reached.
 * See also {@link #readFully}.
 *
 * @throws IndexOutOfBoundsException
 *     if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
 * @throws IOException
 *             if this file is closed or another I/O error occurs.
 */
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: com.gluonhq/robovm-rt

/**
 * Reads up to {@code byteCount} bytes from the current position in this file
 * and stores them in the byte array {@code buffer} starting at {@code
 * byteOffset}. Blocks until at least one byte has been
 * read, the end of the file is detected, or an exception is thrown.
 * Returns the number of bytes actually read or -1 if the end of the stream has been reached.
 * See also {@link #readFully}.
 *
 * @throws IndexOutOfBoundsException
 *     if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
 * @throws IOException
 *             if this file is closed or another I/O error occurs.
 */
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
  return IoBridge.read(fd, buffer, byteOffset, byteCount);
}
origin: com.gluonhq/robovm-rt

while (IoBridge.read(wakeupIn, buffer, 0, 1) > 0) {
origin: MobiVM/robovm

while (IoBridge.read(wakeupIn, buffer, 0, 1) > 0) {
origin: ibinti/bugvm

while (IoBridge.read(wakeupIn, buffer, 0, 1) > 0) {
origin: com.mobidevelop.robovm/robovm-rt

while (IoBridge.read(wakeupIn, buffer, 0, 1) > 0) {
origin: com.bugvm/bugvm-rt

while (IoBridge.read(wakeupIn, buffer, 0, 1) > 0) {
libcore.ioIoBridgeread

Javadoc

java.io thinks that a read at EOF is an error and should return -1, contrary to traditional Unix practice where you'd read until you got 0 bytes (and any future read would return -1).

Popular methods of IoBridge

  • available
  • bind
  • booleanFromInt
  • booleanToInt
  • closeSocket
  • connect
    Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'. Use timeoutMs == 0 fo
  • connectDetail
  • connectErrno
  • getSocketLocalAddress
  • getSocketLocalPort
  • getSocketOption
    java.net has its own socket options similar to the underlying Unix ones. We paper over the differenc
  • getSocketOptionErrno
  • getSocketOption,
  • getSocketOptionErrno,
  • isConnected,
  • maybeThrowAfterRecvfrom,
  • maybeThrowAfterSendto,
  • open,
  • postRecvfrom,
  • recvfrom,
  • sendto

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now