MCPcopy Index your code
hub / github.com/benfry/processing4 / saveStream

Method saveStream

core/src/processing/core/PApplet.java:6918–6920  ·  view source on GitHub ↗

Save the contents of a stream to a file in the sketch folder. This is basically saveBytes(blah, loadBytes()) , but done more efficiently (and with less confusing syntax). The target parameter can be either a String specifying a file name, or, for greater control over the fi

(String target, String source)

Source from the content-addressed store, hash-verified

6916 * @see PApplet#createOutput(String)
6917 */
6918 public boolean saveStream(String target, String source) {
6919 return saveStream(saveFile(target), source);
6920 }
6921
6922 /**
6923 * Identical to the other saveStream(), but writes to a File

Callers 8

ThinkDifferentClass · 0.95
gzipEncodeMethod · 0.95
handleSchemeMethod · 0.95
downloadReferenceMethod · 0.95
addClassesMethod · 0.95
addDataFolderMethod · 0.95
runMethod · 0.80

Calls 12

saveFileMethod · 0.95
createInputRawMethod · 0.95
createPathMethod · 0.95
createTempFileMethod · 0.95
renameToMethod · 0.80
writeMethod · 0.65
closeMethod · 0.45
deleteMethod · 0.45
printlnMethod · 0.45
printStackTraceMethod · 0.45
readMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected