Package org.jacoco.core.internal.analysis

Examples of org.jacoco.core.internal.analysis.ContentTypeDetector


   *            input data
   * @return number of class files found
   * @throws IOException
   */
  public int analyzeAll(final InputStream input) throws IOException {
    final ContentTypeDetector detector = new ContentTypeDetector(input);
    switch (detector.getType()) {
    case ContentTypeDetector.CLASSFILE:
      analyzeClass(detector.getInputStream());
      return 1;
    case ContentTypeDetector.ZIPFILE:
      return analyzeArchive(detector.getInputStream());
    }
    return 0;
  }
View Full Code Here


   *            input data
   * @return number of class files found
   * @throws IOException
   */
  public int analyzeAll(final InputStream input) throws IOException {
    final ContentTypeDetector detector = new ContentTypeDetector(input);
    switch (detector.getType()) {
    case ContentTypeDetector.CLASSFILE:
      analyzeClass(detector.getInputStream());
      return 1;
    case ContentTypeDetector.ZIPFILE:
      return analyzeArchive(detector.getInputStream());
    default:
      return 0;
    }
  }
View Full Code Here

   *            input data
   * @return number of class files found
   * @throws IOException
   */
  public int analyzeAll(final InputStream input) throws IOException {
    final ContentTypeDetector detector = new ContentTypeDetector(input);
    switch (detector.getType()) {
    case ContentTypeDetector.CLASSFILE:
      analyzeClass(detector.getInputStream());
      return 1;
    case ContentTypeDetector.ZIPFILE:
      return analyzeArchive(detector.getInputStream());
    default:
      return 0;
    }
  }
View Full Code Here

   *            input data
   * @return number of class files found
   * @throws IOException
   */
  public int analyzeAll(final InputStream input) throws IOException {
    final ContentTypeDetector detector = new ContentTypeDetector(input);
    switch (detector.getType()) {
    case ContentTypeDetector.CLASSFILE:
      analyzeClass(detector.getInputStream());
      return 1;
    case ContentTypeDetector.ZIPFILE:
      return analyzeArchive(detector.getInputStream());
    default:
      return 0;
    }
  }
View Full Code Here

   *            input data
   * @return number of class files found
   * @throws IOException
   */
  public int analyzeAll(final InputStream input) throws IOException {
    final ContentTypeDetector detector = new ContentTypeDetector(input);
    switch (detector.getType()) {
    case ContentTypeDetector.CLASSFILE:
      analyzeClass(detector.getInputStream());
      return 1;
    case ContentTypeDetector.ZIPFILE:
      return analyzeArchive(detector.getInputStream());
    }
    return 0;
  }
View Full Code Here

TOP

Related Classes of org.jacoco.core.internal.analysis.ContentTypeDetector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.