axml/src/main/java/fr/xgouchet/axml/AXMLParser.java
public void parse(final InputStream inputStream,
                      final AXMLParser.Listener listener)
            throws IOException {

        if ((inputStream == null) || (listener == null)) {
            throw new NullPointerException();
        }

        resetInternalState();

        mListener = listener;
        mInputStream = inputStream;

        processBuffer();

        try {
            mInputStream.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
/**
     * Parses the given input stream and trigger events on the given listener
     *
     * @param inputStream the input stream to parse (it will automatically be closed at the end of the parsing)
     * @param listener    the listener to trigger on each parsing event
     */
Parses the given input stream and trigger events on the given listener
@param inputStream the input stream to parse (it will automatically be closed at the end of the parsing)
@param listener    the listener to trigger on each parsing event
Parses the given input stream and trigger events on the given listener @param inputStream the input stream to parse ( it will automatically be closed at the end of the parsing ) @param listener the listener to trigger on each parsing event
public void parse(final InputStream inputStream,
                      final AXMLParser.Listener listener)
            throws IOException {
        if ((inputStream == null) || (listener == null)) {
            throw new NullPointerException();
        }
        resetInternalState();
        mListener = listener;
        mInputStream = inputStream;
        processBuffer();
        try {
            mInputStream.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
public void parse ( final InputStream inputStream , final AXMLParser . Listener listener ) throws IOException { if ( ( inputStream == null ) || ( listener == null ) ) { throw new NullPointerException ( ) ; } resetInternalState ( ) ; mListener = listener ; mInputStream = inputStream ; processBuffer ( ) ; try { mInputStream . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
Parses the given input stream and trigger events on the given listener
 @param inputStream the input stream to parse (it will automatically be closed at the end of the parsing)
 @param listener    the listener to trigger on each parsing event
Parses the given input stream and trigger events on the given listener @param inputStream the input stream to parse ( it will automatically be closed at the end of the parsing ) @param listener the listener to trigger on each parsing event