Use new log system

This commit is contained in:
fkloft
2014-01-05 19:16:46 +01:00
parent b31d973cff
commit 5d674eee40
15 changed files with 84 additions and 50 deletions

View File

@ -83,7 +83,7 @@ public class IITC_FileManager {
try {
return new FileInputStream(file);
} catch (FileNotFoundException e) {
e.printStackTrace();
Log.w(e);
}
}
@ -96,14 +96,14 @@ public class IITC_FileManager {
URL url = new URL(context, filename);
return url.openStream();
} catch (IOException e) {
e.printStackTrace();
Log.w(e);
}
} else {
File file = new File(source + File.separatorChar + filename);
try {
return new FileInputStream(file);
} catch (FileNotFoundException e) {
e.printStackTrace();
Log.w(e);
}
}
}
@ -117,7 +117,7 @@ public class IITC_FileManager {
try {
stream = getAssetFile(uri.getPath().substring(1));
} catch (IOException e) {
e.printStackTrace();
Log.w(e);
return EMPTY;
}
@ -140,7 +140,7 @@ public class IITC_FileManager {
try {
stream = new FileInputStream(new File(uri.getPath()));
} catch (IOException e) {
e.printStackTrace();
Log.w(e);
return EMPTY;
}
@ -173,7 +173,7 @@ public class IITC_FileManager {
os.write(buffer, 0, read);
}
} catch (IOException e) {
e.printStackTrace();
Log.w(e);
return "";
}
return os.toString();