Merge branch 'tizen_5.0' into tizen_5.5
[platform/core/api/webapi-plugins.git] / src / filesystem / js / file_stream.js
index 8867985..2ba7794 100644 (file)
@@ -134,7 +134,7 @@ function read() {
         length: args.charCount > _count ? _count : args.charCount
     };
 
-    var result = native_.callSync('File_readString', data);
+    var result = native_.callSync('FileReadString', data);
     if (native_.isFailure(result)) {
         throw new WebAPIException(WebAPIException.IO_ERR, 'Could not read');
     }
@@ -178,7 +178,7 @@ function readBytes() {
         length: args.byteCount > _count ? _count : args.byteCount
     };
 
-    var result = native_.callSync('File_readBytes', data);
+    var result = native_.callSync('FileReadBytes', data);
     if (native_.isFailure(result)) {
         throw new WebAPIException(WebAPIException.INVALID_VALUES_ERR, 'Could not read');
     }
@@ -259,7 +259,7 @@ function write() {
         check_characters_outside_latin1(data.data);
     }
 
-    var result = native_.callSync('File_writeString', data);
+    var result = native_.callSync('FileWriteString', data);
 
     if (native_.isFailure(result)) {
         throw new WebAPIException(WebAPIException.IO_ERR, 'Could not write');
@@ -307,7 +307,7 @@ function writeBytes() {
         truncate: this._truncate
     };
 
-    var result = native_.callSync('File_writeBytes', data);
+    var result = native_.callSync('FileWriteBytes', data);
 
     if (native_.isFailure(result)) {
         throw new WebAPIException(WebAPIException.IO_ERR, 'Could not write');
@@ -343,7 +343,7 @@ function writeBase64() {
         truncate: this._truncate
     };
 
-    var result = native_.callSync('File_writeBase64', data);
+    var result = native_.callSync('FileWriteBase64', data);
 
     if (native_.isFailure(result)) {
         throw native_.getErrorObject(result);