66 |
|
|
67 |
import org.xml.sax.SAXException; |
import org.xml.sax.SAXException; |
68 |
|
|
69 |
|
import gnu.classpath.tools.IOToolkit; |
70 |
import gnu.classpath.tools.doclets.xmldoclet.Driver; |
import gnu.classpath.tools.doclets.xmldoclet.Driver; |
71 |
|
|
72 |
import com.sun.javadoc.DocErrorReporter; |
import com.sun.javadoc.DocErrorReporter; |
221 |
reporter.printNotice("Copying " + fileInfo.getComment() + "..."); |
reporter.printNotice("Copying " + fileInfo.getComment() + "..."); |
222 |
InputStream in = new URL(mainResourceURL, fileInfo.getSource()).openStream(); |
InputStream in = new URL(mainResourceURL, fileInfo.getSource()).openStream(); |
223 |
FileOutputStream out = new FileOutputStream(targetFile.getAbsolutePath()); |
FileOutputStream out = new FileOutputStream(targetFile.getAbsolutePath()); |
224 |
Driver.copyStream(in, out); |
IOToolkit.copyStream(in, out); |
225 |
in.close(); |
in.close(); |
226 |
out.close(); |
out.close(); |
227 |
} |
} |