Provides an interface for writing data into the attachment
Close the writer
Check whether closed or not
Write buffer into the attachment