protected OutputStream createOutputStream() throws IOException {
      if (asFile().isPresent()) {
         return new FileOutputStream(asFile().orElse(null));
      }
      return null;

   }
protected OutputStream createOutputStream ( ) throws IOException { if ( asFile ( ) . isPresent ( ) ) { return new FileOutputStream ( asFile ( ) . orElse ( null ) ) ; } return null ; }
Create output stream output stream.

@return the output stream
@throws IOException the io exception