copi diagram file file encod print writer writer io except loop round load diagram zip input stream zi zip input stream url file open stream sub input stream sub sub input stream zi zip entri current entri current entri sub entri current entri end pgml buffer reader reader buffer reader input stream reader sub encod line reader read line line start xml skip line xml version encod utf doctyp pgml pgml dtd reader read line writer println line reader writer reader writer sub close reader close zi close 