logback-android/src/main/java/ch/qos/logback/core/joran/GenericConfigurator.java
public final void doConfigure(InputStream inputStream) throws JoranException {
    try {
      doConfigure(new InputSource(inputStream));
    } finally {
      try {
        inputStream.close();
      } catch (IOException ioe) {
        String errMsg = "Could not close the stream";
        addError(errMsg, ioe);
        throw new JoranException(errMsg, ioe);
      }
    }
  }
public final void doConfigure(InputStream inputStream) throws JoranException {
    try {
      doConfigure(new InputSource(inputStream));
    } finally {
      try {
        inputStream.close();
      } catch (IOException ioe) {
        String errMsg = "Could not close the stream";
        addError(errMsg, ioe);
        throw new JoranException(errMsg, ioe);
      }
    }
  }
public final void doConfigure ( InputStream inputStream ) throws JoranException { try { doConfigure ( new InputSource ( inputStream ) ) ; } finally { try { inputStream . close ( ) ; } catch ( IOException ioe ) { String errMsg = "Could not close the stream" ; addError ( errMsg , ioe ) ; throw new JoranException ( errMsg , ioe ) ; } } }
Configures logback with the configuraiton XML read from an input stream,
and then closes the stream

@param inputStream stream to contents of configuration XML
@throws JoranException configuration error occurred
Configures logback with the configuraiton XML read from an input stream and then closes the stream