Interface TextWritable

  • All Known Implementing Classes:
    PathTextWritable
    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 TextWritable
    The role of an object that can be written as a stream of characters.
    Author:
    Fabrizio Giudici
    Status: stable API
    • Field Detail

      • _TextWritable_

        static final java.lang.Class<TextWritable> _TextWritable_
      • DEFAULT

        static final TextWritable DEFAULT
        A default implementation which throws IOException when opening the stream.
    • Method Detail

      • openWriter

        @Nonnull
        java.io.Writer openWriter()
                           throws java.io.IOException
        Returns a Writer to write into the object.
        Returns:
        the Writer
        Throws:
        java.io.IOException - if the operation can't be performed