code: public static SshPrivateKeyFile parse(InputStream in) throws IOException {
  
  		try {
  			ByteArrayOutputStream out = new ByteArrayOutputStream();
  			int read;
  			while ((read = in.read()) > -1) {
  				out.write(read);
  			}
  			return parse(out.toByteArray());
  		} finally {
  			try {
  				in.close();
  			} catch (IOException ex) {
  			}
  		}
  
  	}
docs: Parse an InputStream and return a suitable <a
  href="SshPrivateKeyFile.html">SshPrivateKeyFile</a> implementation.
  
  @param in
  @return SshPrivateKeyFile
  @throws IOException