Class PathBinaryWritable

  • All Implemented Interfaces:
    BinaryWritable

    public class PathBinaryWritable
    extends java.lang.Object
    implements BinaryWritable
    An implementation of BinaryWritable which delegates to a Path.
    Since:
    3.2-ALPHA-12
    Author:
    Fabrizio Giudici
    Status: stable API
    • Constructor Summary

      Constructors 
      Constructor Description
      PathBinaryWritable​(java.nio.file.Path path, java.nio.file.OpenOption... openOptions)
      Creates an instance with the given path and options.
    • 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

      • PathBinaryWritable

        public PathBinaryWritable​(@Nonnull
                                  java.nio.file.Path path,
                                  @Nonnull
                                  java.nio.file.OpenOption... openOptions)
        Creates an instance with the given path and options.
        Parameters:
        path - the path to open
        openOptions - open options
    • 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