@@ -0,0 +1,1487 @@
+/*%0A * Copyright (C) 2015 Pedro Vicente Gomez Sanchez.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.github.pedrovgs.lynx.model;%0A%0Aimport com.github.pedrovgs.lynx.presenter.LynxPresenter;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Main business logic class for this project. Lynx responsibility is related to listen Logcat%0A * events and notify it to the Lynx listeners transforming all the information from a plain String%0A * to a Trace with all the information needed.%0A *%0A * @author Pedro Vicente G%C3%B3mez S%C3%A1nchez.%0A */%0Apublic class Lynx %7B%0A%0A  private final List%3CLynxListener%3E listeners;%0A%0A  public Lynx() %7B%0A    listeners = new ArrayList%3CLynxListener%3E();%0A  %7D%0A%0A  public void startReading() %7B%0A%0A  %7D%0A%0A  public void stopReading() %7B%0A%0A  %7D%0A%0A  public void registerListener(LynxPresenter lynxPresenter) %7B%0A%0A  %7D%0A%0A  public void unregisterListener(LynxPresenter lynxPresenter) %7B%0A%0A  %7D%0A%0A  public interface LynxListener %7B%0A%0A    void onNewTraces(List%3CTrace%3E traces);%0A  %7D%0A%7D%0A

Create Lynx, the most important class in this library.