JavaScript is disabled on your browser.
javolution.io

Class AppendableWriter

    • Constructor Detail

      • AppendableWriter

        public AppendableWriter()
        Creates a new appendable writer for which the appendable output is not set.
        See Also:
        setOutput(Appendable)
    • Method Detail

      • setOutput

        public AppendableWriter setOutput(Appendable output)
        Sets the appendable output being written to. For example:
         Writer writer = new AppendableWriter().setOutput(new TextBuilder());
         
        Parameters:
        output - the appendable written to.
        Returns:
        this writer.
        Throws:
        IllegalStateException - if this writer is being reused and it has not been closed or reset.
      • write

        public void write(char c)
         throws IOException 
        Writes a single character.
        Parameters:
        c - char the character to be written.
        Throws:
        IOException - if an I/O error occurs.
      • write

        public void write(int c)
         throws IOException 
        Writes the 16 low-order bits of the given integer value; the 16 high-order bits are ignored.
        Overrides:
        write in class Writer
        Parameters:
        c - the value of the character to be written.
        Throws:
        IOException - if an I/O error occurs.
      • write

        public void write(char[] cbuf,
         int off,
         int len)
         throws IOException 
        Writes a portion of an array of characters.
        Specified by:
        write in class Writer
        Parameters:
        cbuf - the array of characters.
        off - the offset from which to start writing characters.
        len - the number of characters to write.
        Throws:
        IOException - if an I/O error occurs.
      • write

        public void write(String str,
         int off,
         int len)
         throws IOException 
        Writes a portion of a string.
        Overrides:
        write in class Writer
        Parameters:
        str - a String.
        off - the offset from which to start writing characters.
        len - the number of characters to write.
        Throws:
        IOException - if an I/O error occurs
      • write

        public void write(CharSequence csq)
         throws IOException 
        Writes the specified character sequence.
        Parameters:
        csq - the character sequence.
        Throws:
        IOException - if an I/O error occurs
      • flush

        public void flush()
        Flushes the stream.
        Specified by:
        flush in interface Flushable
        Specified by:
        flush in class Writer
      • reset

        public void reset()

Copyright © 2005-2013 Javolution. All Rights Reserved.

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