Interface Writer

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
DlgpWriter

public interface Writer extends Closeable
Write objects if possible
Author:
Florent Tornil
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Flush the writer if possible
    void
    write(Object object)
    Write the given object if possible
    default void
    write(Object... objects)
    Write the given objects if possible

    Methods inherited from interface Closeable

    close
  • Method Details

    • write

      void write(Object object) throws IOException
      Write the given object if possible
      Parameters:
      object - object to write
      Throws:
      IOException - If an I/O error occurs
    • flush

      void flush() throws IOException
      Flush the writer if possible
      Throws:
      IOException - If an I/O error occurs
    • write

      default void write(Object... objects) throws IOException
      Write the given objects if possible
      Parameters:
      objects - objects to write
      Throws:
      IOException - If an I/O error occurs