mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 10:30:44 +01:00
fix for a minor "new tab" bug, along with some additional documentation
for methods requested by casey
This commit is contained in:
@@ -3060,6 +3060,21 @@ public class PApplet extends Applet
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Simplified method to open a Java InputStream.
|
||||
* <P>
|
||||
* This method is useful if you want to use the facilities provided
|
||||
* by PApplet to easily open things from the data folder or from a URL,
|
||||
* but want an InputStream object so that you can use other Java
|
||||
* methods to take more control of how the stream is read.
|
||||
* <P>
|
||||
* The filename passed in can be:
|
||||
* <UL>
|
||||
* <LI>A URL, for instance openStream("http://processing.org/");
|
||||
* <LI>A file in the sketch's data folder
|
||||
* <LI>Another file opened locally
|
||||
* </UL>
|
||||
*/
|
||||
public InputStream openStream(String filename) {
|
||||
InputStream stream = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user