Codota Logo
Os.write
Code IndexAdd Codota to your IDE (free)

How to use
write
method
in
libcore.io.Os

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: robovm/robovm

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: robovm/robovm

public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException { return os.write(fd, buffer); }
public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException { return os.write(fd, bytes, byteOffset, byteCount); }
origin: robovm/robovm

public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException { return os.write(fd, bytes, byteOffset, byteCount); }
public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException { return os.writev(fd, buffers, offsets, byteCounts); }
origin: robovm/robovm

@Override public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, buffer);
}
origin: robovm/robovm

@Override public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, bytes, byteOffset, byteCount);
}
origin: robovm/robovm

/**
 * java.io always writes every byte it's asked to, or fails with an error. (That is, unlike
 * Unix it never just writes as many bytes as happens to be convenient.)
 */
public static void write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException {
  Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount);
  if (byteCount == 0) {
    return;
  }
  try {
    while (byteCount > 0) {
      int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount);
      byteCount -= bytesWritten;
      byteOffset += bytesWritten;
    }
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: robovm/robovm

try {
  if (position == -1) {
    bytesWritten = Libcore.os.write(fd, buffer);
  } else {
    bytesWritten = Libcore.os.pwrite(fd, buffer, position);
origin: ibinti/bugvm

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: com.bugvm/bugvm-rt

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: MobiVM/robovm

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: com.mobidevelop.robovm/robovm-rt

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: com.gluonhq/robovm-rt

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: FlexoVM/flexovm

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: MobiVM/robovm

@Override public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, bytes, byteOffset, byteCount);
}
origin: MobiVM/robovm

@Override public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, buffer);
}
origin: ibinti/bugvm

@Override public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, buffer);
}
origin: ibinti/bugvm

@Override public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, bytes, byteOffset, byteCount);
}
origin: com.mobidevelop.robovm/robovm-rt

@Override public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, bytes, byteOffset, byteCount);
}
origin: com.bugvm/bugvm-rt

@Override public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, buffer);
}
origin: com.gluonhq/robovm-rt

@Override public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, bytes, byteOffset, byteCount);
}
libcore.ioOswrite

Popular methods of Os

  • accept
  • access
  • bind
  • chmod
  • chown
  • close
  • connect
  • dup
  • dup2
  • environ
  • execv
  • execve
  • execv,
  • execve,
  • fchmod,
  • fchown,
  • fcntlFlock,
  • fcntlLong,
  • fcntlVoid,
  • fdatasync,
  • fstat,
  • fstatvfs

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • setContentView (Activity)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now