mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Fixing FileUtils
This commit is contained in:
parent
573dffb853
commit
f6e2e129b1
@ -107,7 +107,7 @@ public class FileUtils {
|
|||||||
try {
|
try {
|
||||||
byte [] rawData = data.getBytes();
|
byte [] rawData = data.getBytes();
|
||||||
ByteArrayInputStream in = new ByteArrayInputStream(rawData);
|
ByteArrayInputStream in = new ByteArrayInputStream(rawData);
|
||||||
FileOutputStream out= new FileOutputStream(FilePath, false);
|
FileOutputStream out= new FileOutputStream(FilePath, append);
|
||||||
byte buff[] = new byte[rawData.length];
|
byte buff[] = new byte[rawData.length];
|
||||||
in.read(buff, 0, buff.length);
|
in.read(buff, 0, buff.length);
|
||||||
out.write(buff, 0, rawData.length);
|
out.write(buff, 0, rawData.length);
|
||||||
|
Loading…
Reference in New Issue
Block a user