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 == ' ' ? XPACKET_PI_END_R : XPACKET_PI_END_W ) ; writer . flush ( ) ; writer . close ( ) ; }
Flushes and closes the XmpWriter .