类 JTextPaneWriter

  • 所有已实现的接口:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable

    public class JTextPaneWriter
    extends java.io.Writer
    作者:
    yaqiang
    • 字段概要

      • 从类继承的字段 java.io.Writer

        lock
    • 构造器概要

      构造器 
      构造器 说明
      JTextPaneWriter​(javax.swing.JTextPane ta)  
      JTextPaneWriter​(javax.swing.JTextPane ta, int maxBuffSize)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void close()  
      void flush()
      overrides OutputStream.flush()
      java.lang.String toString()
      returns the written string
      void write​(char[] cbuf, int off, int len)  
      void write​(int b)
      implements the stream: writes the byte to the string buffer
      • 从类继承的方法 java.io.Writer

        append, append, append, nullWriter, write, write, write
      • 从类继承的方法 java.lang.Object

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

      • JTextPaneWriter

        public JTextPaneWriter​(javax.swing.JTextPane ta)
      • JTextPaneWriter

        public JTextPaneWriter​(javax.swing.JTextPane ta,
                               int maxBuffSize)
    • 方法详细资料

      • toString

        public java.lang.String toString()
        returns the written string
        覆盖:
        toString 在类中 java.lang.Object
        返回:
      • flush

        public void flush()
        overrides OutputStream.flush()
        指定者:
        flush 在接口中 java.io.Flushable
        指定者:
        flush 在类中 java.io.Writer
      • write

        public void write​(int b)
        implements the stream: writes the byte to the string buffer
        覆盖:
        write 在类中 java.io.Writer
        参数:
        b -
      • write

        public void write​(char[] cbuf,
                          int off,
                          int len)
        指定者:
        write 在类中 java.io.Writer
      • close

        public void close()
        指定者:
        close 在接口中 java.lang.AutoCloseable
        指定者:
        close 在接口中 java.io.Closeable
        指定者:
        close 在类中 java.io.Writer