Code example for LineNumberReader

0
        @Override 
        protected void onPreExecute() { 
            mPOut = new PipedOutputStream();
            try { 
                mPIn = new PipedInputStream(mPOut);
                mReader = new LineNumberReader(new InputStreamReader(mPIn));
            } catch (IOException e) {
                cancel(true);
            } 
 
        } 
 
        public void stop() { 
            Process p = mProcess; 
            if (p != null) { 
                p.destroy(); 
            } 
            cancel(true);
        } 
 
        @Override