finalize() Finalizes the stream by flushing all the remaining data in the stream. Declarationfunc finalize() throws See AlsoInstance Methodswrite(_:)