1 23 package org.hammurapi.inspectors.testcases.violations; 24 25 import java.io.FileInputStream ; 26 import java.io.FileNotFoundException ; 27 import java.io.IOException ; 28 import java.io.InputStream ; 29 import java.io.ObjectInputStream ; 30 import java.io.Serializable ; 31 import java.io.StreamCorruptedException ; 32 33 38 public class TooManyThrowsRuleViolationTestCase implements Serializable { 39 40 private static org.apache.log4j.Logger logger = 41 org.apache.log4j.Logger.getRootLogger(); 42 43 44 public static TooManyThrowsRuleViolationTestCase readIn(final String fName) 45 throws FileNotFoundException , IOException , ClassNotFoundException , 47 StreamCorruptedException { 48 49 InputStream is = new FileInputStream (fName); 50 ObjectInputStream ois = new ObjectInputStream (is); 51 TooManyThrowsRuleViolationTestCase obj = 52 (TooManyThrowsRuleViolationTestCase) ois.readObject(); 53 return obj; 54 } 55 } 56 57 | Popular Tags |