Class DefaultSvetovidWriter

    • Field Detail

      • writer

        protected java.io.BufferedWriter writer
    • Constructor Detail

      • DefaultSvetovidWriter

        public DefaultSvetovidWriter​(java.io.BufferedWriter out)
        Creates a new SvetovidWriter that outputs to the specified writer.
        Parameters:
        out - the writer to use for output
      • DefaultSvetovidWriter

        public DefaultSvetovidWriter​(java.io.Writer out)
        Creates a new SvetovidWriter that outputs to the specified writer.
        Parameters:
        out - the writer to use for output
      • DefaultSvetovidWriter

        public DefaultSvetovidWriter​(java.io.OutputStream out)
        Creates a new SvetovidWriter that outputs to the specified output stream.
        Parameters:
        out - the output stream to use for output
    • Method Detail

      • close

        public void close()
                   throws SvetovidIOException
        Description copied from interface: SvetovidWriter
        Closes this writer and releases any resources associated with the underlying stream. The general contract of close is that it closes the output stream. A closed stream cannot perform output operations and cannot be reopened.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface SvetovidWriter
        Overrides:
        close in class AbstractSvetovidWriter
        Throws:
        SvetovidIOException - if an error occurred during the operation.
      • doPrint

        public void doPrint​(java.lang.String value)
                     throws java.io.IOException
        Specified by:
        doPrint in class AbstractSvetovidWriter
        Throws:
        java.io.IOException
      • doPrintln

        public void doPrintln​(java.lang.String value)
                       throws java.io.IOException
        Specified by:
        doPrintln in class AbstractSvetovidWriter
        Throws:
        java.io.IOException