title: upload file into google drive using java api
body: <pre><code>DocsService client = new DocsService("service name");
  client.setUserCredentials(username,password);
  File file = new File(filename);
  URL url = new URL("https://docs.google.com/feeds/default/private/full/?ocr=true&amp;convert=true");
  String mimeType =     DocumentListEntry.MediaType.fromFileName(file.getName()).getMimeType();
  DocumentEntry newDocument = new DocumentEntry();
  newDocument.setTitle(new PlainTextConstruct(file.getName()));
  newDocument.setMediaSource(new MediaFileSource(file, mimeType));
  //newDocument.setFile(file, mimeType);
  newDocument = client.insert(url, newDocument);
  System.out.println("uploaded "+file.getName());
  JOptionPane.showMessageDialog(null, "uploaded "+file.getName(), "alert", JOptionPane.ERROR_MESSAGE);
  </code></pre>
  
  <p>using this code i upload file but that file is upload as a document.
       means i upload any type of that file is upload as a document in to google drive</p>