package tool;
+import java.io.BufferedInputStream;
+import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
PropertiesManipulator result;
try {
- master = PropertiesManipulator.readProperties(new FileInputStream(new File(aMaster)));
+ master = PropertiesManipulator.readProperties(
+ new BufferedInputStream(
+ new FileInputStream(new File(aMaster)),8192));
}
catch (Throwable t) {
System.out.println("Unable to read master properties: " + t.getMessage());
}
try {
- slave = PropertiesManipulator.readProperties(new FileInputStream(new File(aSlave)));
+ slave = PropertiesManipulator.readProperties(
+ new BufferedInputStream(
+ new FileInputStream(new File(aSlave)),8192));
}
catch (FileNotFoundException t) {
slave = new PropertiesManipulator();
PropertiesManipulator result;
try {
- master = PropertiesManipulator.readProperties(new FileInputStream(new File(aMaster)));
+ master = PropertiesManipulator.readProperties(
+ new BufferedInputStream(
+ new FileInputStream(new File(aMaster)),8192));
}
catch (Throwable t) {
System.out.println("Unable to read master properties: " + t.getMessage());
}
try {
- slave = PropertiesManipulator.readProperties(new FileInputStream(new File(aSlave)));
+ slave = PropertiesManipulator.readProperties(
+ new BufferedInputStream(
+ new FileInputStream(new File(aSlave)),8192));
}
catch (FileNotFoundException t) {
slave = new PropertiesManipulator();
}
try {
- PropertiesManipulator.writeProperties(result, new FileOutputStream(new File(aSlave)));
+ PropertiesManipulator.writeProperties(result,
+ new BufferedOutputStream(new FileOutputStream(new File(aSlave)),8192));
}
catch (Throwable t) {
System.out.println("Unable to write slave properties: " + t.getMessage());
PropertiesManipulator bundle;
try {
- bundle = PropertiesManipulator.readProperties(new FileInputStream(new File(aBundle)));
+ bundle = PropertiesManipulator.readProperties(
+ new BufferedInputStream(
+ new FileInputStream(new File(aBundle)),8192));
- PropertiesManipulator.writeProperties(bundle, new FileOutputStream(anOutputFile), anEncoding, false);
+ PropertiesManipulator.writeProperties(bundle,
+ new BufferedOutputStream(new FileOutputStream(anOutputFile),8192), anEncoding, false);
}
catch (Throwable t) {
System.out.println("Unable to read master properties: " + t.getMessage());
PropertiesManipulator bundle;
try {
- bundle = PropertiesManipulator.readProperties(new FileInputStream(new File(aSourceFile)), anEncoding);
+ bundle = PropertiesManipulator.readProperties(
+ new BufferedInputStream(
+ new FileInputStream(new File(aSourceFile)),8192), anEncoding);
}
catch (Throwable t) {
Throwable s = ExceptionFunctions.traceCauseException(t);
return;
}
try {
- PropertiesManipulator.writeProperties(bundle, new FileOutputStream(aBundle));
+ PropertiesManipulator.writeProperties(bundle,
+ new BufferedOutputStream(new FileOutputStream(aBundle),8192));
}
catch (Throwable t) {
System.out.println("Unable to write bundle: " + t.toString());