Subversion Repositories SmartDukaan

Rev

Rev 42 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 42 Rev 43
Line 43... Line 43...
43
	 * @param dbFile
43
	 * @param dbFile
44
	 * @return
44
	 * @return
45
	 * @throws Exception
45
	 * @throws Exception
46
	 */
46
	 */
47
	public static Object read(String dbFile) throws Exception {
47
	public static Object read(String dbFile) throws Exception {
-
 
48
		
48
		File f = new File(dbFile);
49
		File f = new File(dbFile);
49
		if(!f.exists()) {
50
		if(!f.exists()) {
-
 
51
			Utils.severe(dbFile + " - does not exist");
50
			return null;
52
			return null;
51
		}
53
		}
52
		
54
		
53
		FileInputStream fis = new FileInputStream(f);
55
		FileInputStream fis = new FileInputStream(f);
54
		ObjectInputStream in = new ObjectInputStream(fis);
56
		ObjectInputStream in = new ObjectInputStream(fis);