java.lang.System.setFieldImpl()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(237)

本文整理了Java中java.lang.System.setFieldImpl()方法的一些代码示例,展示了System.setFieldImpl()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。System.setFieldImpl()方法的具体详情如下:
包路径:java.lang.System
类名称:System
方法名:setFieldImpl

System.setFieldImpl介绍

[英]Sets the value of the named static field in the receiver to the passed in argument.
[中]将接收器中命名静态字段的值设置为传入参数。

代码示例

代码示例来源:origin: robovm/robovm

  1. /**
  2. * Sets the standard output stream to the given user defined output stream.
  3. *
  4. * @param newOut
  5. * the user defined output stream to set as the standard output
  6. * stream.
  7. */
  8. public static void setOut(PrintStream newOut) {
  9. setFieldImpl("out", "Ljava/io/PrintStream;", newOut);
  10. }

代码示例来源:origin: robovm/robovm

  1. /**
  2. * Sets the standard error output stream to the given user defined output
  3. * stream.
  4. *
  5. * @param newErr
  6. * the user defined output stream to set as the standard error
  7. * output stream.
  8. */
  9. public static void setErr(PrintStream newErr) {
  10. setFieldImpl("err", "Ljava/io/PrintStream;", newErr);
  11. }

代码示例来源:origin: robovm/robovm

  1. /**
  2. * Sets the standard input stream to the given user defined input stream.
  3. *
  4. * @param newIn
  5. * the user defined input stream to set as the standard input
  6. * stream.
  7. */
  8. public static void setIn(InputStream newIn) {
  9. setFieldImpl("in", "Ljava/io/InputStream;", newIn);
  10. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * Sets the standard output stream to the given user defined output stream.
  3. *
  4. * @param newOut
  5. * the user defined output stream to set as the standard output
  6. * stream.
  7. */
  8. public static void setOut(PrintStream newOut) {
  9. setFieldImpl("out", "Ljava/io/PrintStream;", newOut);
  10. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Sets the standard output stream to the given user defined output stream.
  3. *
  4. * @param newOut
  5. * the user defined output stream to set as the standard output
  6. * stream.
  7. */
  8. public static void setOut(PrintStream newOut) {
  9. setFieldImpl("out", "Ljava/io/PrintStream;", newOut);
  10. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * Sets the standard input stream to the given user defined input stream.
  3. *
  4. * @param newIn
  5. * the user defined input stream to set as the standard input
  6. * stream.
  7. */
  8. public static void setIn(InputStream newIn) {
  9. setFieldImpl("in", "Ljava/io/InputStream;", newIn);
  10. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * Sets the standard error output stream to the given user defined output
  3. * stream.
  4. *
  5. * @param newErr
  6. * the user defined output stream to set as the standard error
  7. * output stream.
  8. */
  9. public static void setErr(PrintStream newErr) {
  10. setFieldImpl("err", "Ljava/io/PrintStream;", newErr);
  11. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Sets the standard input stream to the given user defined input stream.
  3. *
  4. * @param newIn
  5. * the user defined input stream to set as the standard input
  6. * stream.
  7. */
  8. public static void setIn(InputStream newIn) {
  9. setFieldImpl("in", "Ljava/io/InputStream;", newIn);
  10. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Sets the standard error output stream to the given user defined output
  3. * stream.
  4. *
  5. * @param newErr
  6. * the user defined output stream to set as the standard error
  7. * output stream.
  8. */
  9. public static void setErr(PrintStream newErr) {
  10. setFieldImpl("err", "Ljava/io/PrintStream;", newErr);
  11. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Sets the standard input stream to the given user defined input stream.
  3. *
  4. * @param newIn
  5. * the user defined input stream to set as the standard input
  6. * stream.
  7. */
  8. public static void setIn(InputStream newIn) {
  9. setFieldImpl("in", "Ljava/io/InputStream;", newIn);
  10. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Sets the standard input stream to the given user defined input stream.
  3. *
  4. * @param newIn
  5. * the user defined input stream to set as the standard input
  6. * stream.
  7. */
  8. public static void setIn(InputStream newIn) {
  9. setFieldImpl("in", "Ljava/io/InputStream;", newIn);
  10. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Sets the standard error output stream to the given user defined output
  3. * stream.
  4. *
  5. * @param newErr
  6. * the user defined output stream to set as the standard error
  7. * output stream.
  8. */
  9. public static void setErr(PrintStream newErr) {
  10. setFieldImpl("err", "Ljava/io/PrintStream;", newErr);
  11. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Sets the standard output stream to the given user defined output stream.
  3. *
  4. * @param newOut
  5. * the user defined output stream to set as the standard output
  6. * stream.
  7. */
  8. public static void setOut(PrintStream newOut) {
  9. setFieldImpl("out", "Ljava/io/PrintStream;", newOut);
  10. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Sets the standard error output stream to the given user defined output
  3. * stream.
  4. *
  5. * @param newErr
  6. * the user defined output stream to set as the standard error
  7. * output stream.
  8. */
  9. public static void setErr(PrintStream newErr) {
  10. setFieldImpl("err", "Ljava/io/PrintStream;", newErr);
  11. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Sets the standard output stream to the given user defined output stream.
  3. *
  4. * @param newOut
  5. * the user defined output stream to set as the standard output
  6. * stream.
  7. */
  8. public static void setOut(PrintStream newOut) {
  9. setFieldImpl("out", "Ljava/io/PrintStream;", newOut);
  10. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Sets the standard error output stream to the given user defined output
  3. * stream.
  4. *
  5. * @param newErr
  6. * the user defined output stream to set as the standard error
  7. * output stream.
  8. */
  9. public static void setErr(PrintStream newErr) {
  10. setFieldImpl("err", "Ljava/io/PrintStream;", newErr);
  11. }

代码示例来源:origin: FlexoVM/flexovm

  1. /**
  2. * Sets the standard error output stream to the given user defined output
  3. * stream.
  4. *
  5. * @param newErr
  6. * the user defined output stream to set as the standard error
  7. * output stream.
  8. */
  9. public static void setErr(PrintStream newErr) {
  10. setFieldImpl("err", "Ljava/io/PrintStream;", newErr);
  11. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Sets the standard input stream to the given user defined input stream.
  3. *
  4. * @param newIn
  5. * the user defined input stream to set as the standard input
  6. * stream.
  7. */
  8. public static void setIn(InputStream newIn) {
  9. setFieldImpl("in", "Ljava/io/InputStream;", newIn);
  10. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Sets the standard output stream to the given user defined output stream.
  3. *
  4. * @param newOut
  5. * the user defined output stream to set as the standard output
  6. * stream.
  7. */
  8. public static void setOut(PrintStream newOut) {
  9. setFieldImpl("out", "Ljava/io/PrintStream;", newOut);
  10. }

代码示例来源:origin: FlexoVM/flexovm

  1. /**
  2. * Sets the standard input stream to the given user defined input stream.
  3. *
  4. * @param newIn
  5. * the user defined input stream to set as the standard input
  6. * stream.
  7. */
  8. public static void setIn(InputStream newIn) {
  9. setFieldImpl("in", "Ljava/io/InputStream;", newIn);
  10. }

相关文章