JavaScript is disabled on your browser.
Skip navigation links
gnu.lists

Class ConsumerWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable


    public class ConsumerWriter
    extends java.io.Writer
    A Writer that wraps (filters) a Consumer.
    • Field Summary

      Fields
      Modifier and Type Field and Description
      protected Consumer out
      • Fields inherited from class java.io.Writer

        lock
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      void close ()
      void finalize ()
      void flush ()
      void write (char[] buffer, int offset, int length)
      • Methods inherited from class java.io.Writer

        append, append, append, write, write, write, write
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • ConsumerWriter

        public ConsumerWriter(Consumer out)
    • Method Detail

      • write

        public void write(char[] buffer,
         int offset,
         int length)
        Specified by:
        write in class java.io.Writer
      • flush

        public void flush()
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in class java.io.Writer
      • close

        public void close()
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in class java.io.Writer
      • finalize

        public void finalize()
        Overrides:
        finalize in class java.lang.Object
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /