question: public void readMap ( InputStream inputStream , MapBuilder builder ) { try { parseMap ( inputStream , builder ) ; if ( builder . nodeRefsWithoutDefsAdded ( ) ) LOG . warning ( "Nodes were referenced in ways but not defined before." ) ; } catch ( SAXParseException e ) { throw new OsmRuntimeException ( "Unable to parse input stream" + ".  publicId=(" + e . getPublicId ( ) + "), systemId=(" + e . getSystemId ( ) + "), lineNumber=" + e . getLineNumber ( ) + ", columnNumber=" + e . getColumnNumber ( ) + "." , e ) ; } catch ( SAXException e ) { throw new OsmRuntimeException ( "Unable to parse XML." , e ) ; } catch ( IOException e ) { throw new OsmRuntimeException ( "Unable to read XML input stream." , e ) ; } finally { if ( inputStream != null ) { try { inputStream . close ( ) ; } catch ( IOException e ) { LOG . log ( Level . SEVERE , "Unable to close input stream." , e ) ; } } } }
target:  Reads all data from the specified stream and sends it to the consumer. The consumer is cleared before.