prioritizing for 77 and added gzipInput/Output

This commit is contained in:
benfry
2005-02-11 04:52:59 +00:00
parent 9dbea91f64
commit b293d2cf77
3 changed files with 81 additions and 51 deletions

View File

@@ -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?
*/