mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
prioritizing for 77 and added gzipInput/Output
This commit is contained in:
@@ -2494,6 +2494,31 @@ public class PApplet extends Applet
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* decode a gzip input stream
|
||||
*/
|
||||
public InputStream gzipInput(InputStream input) {
|
||||
try {
|
||||
return new GZIPInputStream(input);
|
||||
} catch (IOException e) {
|
||||
die("Problem with gzip input", e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* decode a gzip output stream
|
||||
*/
|
||||
public OutputStream gzipOutput(OutputStream output) {
|
||||
try {
|
||||
return new GZIPOutputStream(output);
|
||||
} catch (IOException e) {
|
||||
die("Problem with gzip output", e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* I want to print lines to a file. Why can't I?
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user