Interface MongoDbGridFSIO.WriteFn<T>

  • All Superinterfaces:
    java.io.Serializable
    Enclosing class:
    MongoDbGridFSIO

    public static interface MongoDbGridFSIO.WriteFn<T>
    extends java.io.Serializable
    Function that is called to write the data to the give GridFS OutputStream.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void write​(T output, java.io.OutputStream outStream)
      Output the object to the given OutputStream.
    • Method Detail

      • write

        void write​(T output,
                   java.io.OutputStream outStream)
            throws java.io.IOException
        Output the object to the given OutputStream.
        Parameters:
        output - The data to output
        outStream - The OutputStream
        Throws:
        java.io.IOException