public void finish ( ) throws IOException { writer . append ( "--" + boundary + "--" ) . append ( LINE_BREAK ) ; writer . flush ( ) ; writer . close ( ) ; outputStream . flush ( ) ; outputStream . close ( ) ; }
Adds the final boundary to the multipart message and closes streams .