Code example for InputSource

Methods: setByteStream

0
			{ 
			  // CS : while working on bug 113537 I noticed we're not using the LazyURLInputStream 
		      // so fixed this to avoid leaking file handles 
			  // 
              String physical = fURIResolver.resolvePhysicalLocation(fBaseLocation, publicId, location); 
			  is = new InputSource(location);
			  is.setByteStream(new LazyURLInputStream(physical));
			} 
			return is;
		} 
	} 
 
	/** 
	 * An error handler for DTD validation. 
	 *  
	 * @author Lawrence Mandel, IBM 
	 */ 
	class DTDErrorHandler implements ErrorHandler {
 
		private final int ERROR = 0;
		private final ValidationInfo fValidationInfo;