类 ThreadIOImpl

  • 所有已实现的接口:
    ThreadIO

    public class ThreadIOImpl
    extends java.lang.Object
    implements ThreadIO
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void close()
      Cancel the streams associated with the current thread.
      void setStreams​(java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err)
      Associate this streams with the current thread.
      void start()  
      void stop()  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • ThreadIOImpl

        public ThreadIOImpl()
    • 方法详细资料

      • start

        public void start()
      • stop

        public void stop()
      • close

        public void close()
        从接口复制的说明: ThreadIO
        Cancel the streams associated with the current thread.

        This method will not do anything when no streams are associated.

        指定者:
        close 在接口中 ThreadIO
      • setStreams

        public void setStreams​(java.io.InputStream in,
                               java.io.PrintStream out,
                               java.io.PrintStream err)
        从接口复制的说明: ThreadIO
        Associate this streams with the current thread.

        Ensure that when output is performed on System.in, System.out, System.err it will happen on the given streams.

        The streams will automatically be canceled when the bundle that has gotten this service is stopped or returns this service.

        指定者:
        setStreams 在接口中 ThreadIO
        参数:
        in - InputStream to use for the current thread when System.in is used
        out - PrintStream to use for the current thread when System.out is used
        err - PrintStream to use for the current thread when System.err is used