Interface BinaryWritable

  • All Known Implementing Classes:
    FileBinaryWritable, PathBinaryWritable
    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 BinaryWritable
    The role of an object that can be written as a stream of bytes.
    Author:
    Fabrizio Giudici
    Status: stable API
    Stereotype:
    Role
    • Field Detail

      • _BinaryWritable_

        static final java.lang.Class<BinaryWritable> _BinaryWritable_
      • DEFAULT

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

      • openStream

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