jjzjj

BazException

全部标签

java - 处理匿名内部类中的新异常

我有类似下面的情况:/**Getalistofrecords*/publicArrayListfoo()throwsBazException{//CreatetheliststaticArrayListrecords=newArrayList();//UseMyLibrarytoloadalistofrecordsfromthefileStringstr=SomeoneElsesLibrary.loadData(newFile("mydata.dat"),newDataLoader(){//willbecalledonceforeachrecordinthefileStringproc