1 32 33 package com.jeantessier.classreader; 34 35 import java.io.*; 36 import java.util.*; 37 38 public class ClassfileScanner extends ClassfileLoaderEventSource { 39 private int nbFiles; 40 private int nbClasses; 41 42 public ClassfileScanner() { 43 super(); 44 } 45 46 public ClassfileScanner(ClassfileLoaderDispatcher dispatcher) { 47 super(dispatcher); 48 } 49 50 public int getNbFiles() { 51 return nbFiles; 52 } 53 54 public int getNbClasses() { 55 return nbClasses; 56 } 57 58 public Classfile getClassfile(String name) { 59 return null; 60 } 61 62 public Collection getAllClassfiles() { 63 return Collections.EMPTY_LIST; 64 } 65 66 public Collection getAllClassNames() { 67 return Collections.EMPTY_LIST; 68 } 69 70 protected Classfile load(DataInputStream in) throws IOException { 71 return null; 72 } 73 74 protected void fireBeginFile(String filename) { 75 super.fireBeginFile(filename); 76 77 nbFiles++; 78 } 79 80 protected void fireBeginClassfile(String filename) { 81 super.fireBeginClassfile(filename); 82 83 nbClasses++; 84 } 85 } 86 | Popular Tags |