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

How to use
isatty
method
in
libcore.io.Os

Best Java code snippets using libcore.io.Os.isatty (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

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: robovm/robovm

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: robovm/robovm

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
origin: MobiVM/robovm

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: ibinti/bugvm

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: com.mobidevelop.robovm/robovm-rt

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: com.bugvm/bugvm-rt

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: com.gluonhq/robovm-rt

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: FlexoVM/flexovm

public boolean isatty(FileDescriptor fd) { return os.isatty(fd); }
public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); }
origin: MobiVM/robovm

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: com.gluonhq/robovm-rt

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: com.mobidevelop.robovm/robovm-rt

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: ibinti/bugvm

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: FlexoVM/flexovm

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: com.bugvm/bugvm-rt

private static Console makeConsole() {
  // We don't care about stderr, because this class only uses stdin and stdout.
  if (!Libcore.os.isatty(FileDescriptor.in) || !Libcore.os.isatty(FileDescriptor.out)) {
    return null;
  }
  try {
    return new Console(System.in, System.out);
  } catch (IOException ex) {
    throw new AssertionError(ex);
  }
}
origin: MobiVM/robovm

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
origin: ibinti/bugvm

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
origin: FlexoVM/flexovm

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Ensures that data which is buffered within the underlying implementation
 * is written out to the appropriate device before returning.
 */
public void sync() throws SyncFailedException {
  try {
    if (Libcore.os.isatty(this)) {
      Libcore.os.tcdrain(this);
    } else {
      Libcore.os.fsync(this);
    }
  } catch (ErrnoException errnoException) {
    SyncFailedException sfe = new SyncFailedException(errnoException.getMessage());
    sfe.initCause(errnoException);
    throw sfe;
  }
}
libcore.ioOsisatty

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

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JFrame (javax.swing)
  • Runner (org.openjdk.jmh.runner)
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