code: public void close() throws IOException {
  		writer.write("</rdf:RDF>");
  		writer.write("</x:xmpmeta>\n");
  		for (int i = 0; i < extraSpace; i++) {
  			writer.write(EXTRASPACE);
  		}
  		writer.write(end == 'r' ? XPACKET_PI_END_R : XPACKET_PI_END_W);
  		writer.flush();
  		writer.close();
  	}
docs: Flushes and closes the XmpWriter.
  @throws IOException