Class FSCompareAndUpdateImpl

    • Constructor Detail

      • FSCompareAndUpdateImpl

        public FSCompareAndUpdateImpl()
    • Method Detail

      • updateFile

        public boolean updateFile​(@NotNull
                                  File file,
                                  @NotNull
                                  InputStream stream,
                                  int streamLength)
                           throws IOException
        Description copied from interface: FSCompareAndUpdate
        Updates a file with contents of the stream.
        Specified by:
        updateFile in interface FSCompareAndUpdate
        Parameters:
        file - file to update
        stream - stream with new bytes
        Returns:
        true if there was updated bytes in the file
        Throws:
        IOException