Class FileBinaryWritable

  • All Implemented Interfaces:
    BinaryWritable

    public class FileBinaryWritable
    extends java.lang.Object
    implements BinaryWritable
    An implementation of BinaryWritable which delegates to a File.
    Author:
    Fabrizio Giudici
    Status: stable API
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.OutputStream openStream()
      Returns an OutputStream to write into the object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileBinaryWritable

        public FileBinaryWritable()
    • Method Detail

      • openStream

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