fix for a minor "new tab" bug, along with some additional documentation

for methods requested by casey
This commit is contained in:
benfry
2005-05-02 23:32:05 +00:00
parent 61af3f577c
commit bf3ec90c72
6 changed files with 108 additions and 16 deletions

View File

@@ -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;