Interface IHasWriter

All Known Implementing Classes:
StringWriterProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IHasWriter
A callback interface to retrieve Writer objects.
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    default Writer
    Get a buffered writer to write to an object.
    Get the writer to write to an object.
  • Method Details

    • getWriter

      @Nullable Writer getWriter()
      Get the writer to write to an object. Each time this method is call, a new Writer needs to be created!
      Returns:
      null if resolving failed.
    • getBufferedWriter

      @Nullable default Writer getBufferedWriter()
      Get a buffered writer to write to an object. Each time this method is call, a new Writer needs to be created!
      Returns:
      null if resolving failed.
      Since:
      9.1.8