Added XML parameter description placeholders for processing/processing-web#81

This commit is contained in:
Scott Murray
2013-04-03 09:56:36 -07:00
parent bf75af432a
commit ae312eee2d

View File

@@ -78,16 +78,26 @@ public class XML implements Serializable {
// this(parent.createReader(filename));
// }
/**
* @param file description TBD
*/
public XML(File file) throws IOException, ParserConfigurationException, SAXException {
this(file, null);
}
/**
* @param options description TBD
*/
public XML(File file, String options) throws IOException, ParserConfigurationException, SAXException {
this(PApplet.createReader(file), options);
}
/**
* @param input description TBD
*/
public XML(InputStream input) throws IOException, ParserConfigurationException, SAXException {
this(input, null);
}
@@ -141,6 +151,9 @@ public class XML implements Serializable {
}
/**
* @param name description TBD
*/
// TODO is there a more efficient way of doing this? wow.
public XML(String name) throws ParserConfigurationException {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();