Code example for InputSource

Methods: setCharacterStream

0
		} catch (Exception e) {
			Logger.logError(e);
			throw new RuntimeException("Unable to create XML parser", e);
		} 
 
		InputSource is = new InputSource();
		is.setCharacterStream(in);
		try { 
			parser.parse(is, handler);
		} catch (SAXException e) {
			Logger.logError(e);
			throw new IOException("Malformed XML");
		} 
 
	} 
 
	public static final String TYPE_INTEGER = "Int";
	public static final String TYPE_LONG = "Long";
	public static final String TYPE_DOUBLE = "Dbl";
	public static final String TYPE_FLOAT = "Flt";
Contextual code suggestions in your IDE  Get Codota for Java