Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VUtils – Release 1
Class org.violetlib.io.VULineWritingConverter
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.io

Class VULineWritingConverter

  • Object
    • VULineWritingConverter
  • All Implemented Interfaces:
    VUWriter
    public class VULineWritingConverter extends Object implements VUWriter
    Allows a writer to supply text to a line writer.
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator create Reveal DetailHide Detail
      static VUWriter create(VULineWriter target)
      Create a writer that collects the supplied text into lines that are written indivually to the specified line writer.
      public static VUWriter create(VULineWriter target)
      Create a writer that collects the supplied text into lines that are written indivually to the specified line writer. The newline character indicates the end of a line.

      If the text ends with an unterminated line, that line is passed to the line writer as if it had been terminated, provided that flush() is called after all text has been written. The behavior of flush() is non-standard; it should not be called at any other time.

      Parameters:
      target - The line writer to receive the text lines.
      Inherited member indicator from Reveal DetailHide Detail
      static VUWriter from(Writer w)
       
      public static VUWriter from(Writer w)
    • Methods 
      Modifier and Type Method and Description
      Inherited member indicator asPrintWriter Reveal DetailHide Detail
      PrintWriter asPrintWriter()
       
      public PrintWriter asPrintWriter()
      Inherited member indicator asWriter Reveal DetailHide Detail
      Writer asWriter()
       
      public Writer asWriter()
      Ordinary member indicator flush Reveal DetailHide Detail
      void flush()
      Calling flush will output the current non-empty partial line as if a newline had been written.
      public void flush() throws IORuntimeException
      Calling flush will output the current non-empty partial line as if a newline had been written. This method should be called only when there is no more text to be written. Effectively, it adds a newline to text that ends with an unterminated line.
      Specified by:
      flush in interface VUWriter
      Throws:
      IORuntimeException
      Ordinary member indicator newLine Reveal DetailHide Detail
      void newLine()
       
      public void newLine() throws IORuntimeException
      Ordinary member indicator write Reveal DetailHide Detail
      void write(char ch)
       
      public void write(char ch) throws IORuntimeException
      Ordinary member indicator write Reveal DetailHide Detail
      void write(String s)
       
      public void write(String s) throws IORuntimeException
      Inherited member indicator writeln Reveal DetailHide Detail
      void writeln()
       
      public void writeln() throws IORuntimeException
      Inherited member indicator writeln Reveal DetailHide Detail
      void writeln(String s)
       
      public void writeln(String s) throws IORuntimeException
      • Methods inherited from class Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait