MCPcopy Create free account
hub / github.com/GateNLP/gate-core / write

Method write

src/main/java/gate/util/ant/packager/GappModel.java:388–396  ·  view source on GitHub ↗

Write out the (possibly modified) GAPP file to its new location. @throws IOException if an I/O error occurs.

()

Source from the content-addressed store, hash-verified

386 * @throws IOException if an I/O error occurs.
387 */
388 public void write() throws IOException {
389 finish();
390 File newGappFile = Files.fileFromURL(gappFileURL);
391 FileOutputStream fos = new FileOutputStream(newGappFile);
392 BufferedOutputStream out = new BufferedOutputStream(fos);
393
394 XMLOutputter outputter = new XMLOutputter(Format.getRawFormat());
395 outputter.output(gappDocument, out);
396 }
397
398 /**
399 * Very simple "struct" for a set of Maven co-ordinates.

Callers 15

executeMethod · 0.95
testRepositioningInfoMethod · 0.45
writeUserConfigMethod · 0.45
createMethod · 0.45
setIndexerMethod · 0.45
runMethod · 0.45
runMethod · 0.45
writeTempFileMethod · 0.45
updateXmlElementMethod · 0.45
storeAnnotationsMethod · 0.45
printToTextMethod · 0.45
printToHTMLMethod · 0.45

Calls 2

finishMethod · 0.95
fileFromURLMethod · 0.95

Tested by 1

testRepositioningInfoMethod · 0.36