Skip to content
This repository was archived by the owner on Apr 8, 2019. It is now read-only.

Commit 2f0217e

Browse files
author
aki
committed
typo unit8
1 parent 40a4829 commit 2f0217e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/com/akjava/gwt/html5/client/file/FileReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public final native String getResultAsString()/*-{
3939
return this.result;
4040
}-*/;
4141

42-
public final native Unit8Array getResultAsBuffer()/*-{
42+
public final native Uint8Array getResultAsBuffer()/*-{
4343
if(this.result){
4444
return new $wnd.Uint8Array(this.result);
4545
}else{

src/com/akjava/gwt/html5/client/file/Unit8Array.java renamed to src/com/akjava/gwt/html5/client/file/Uint8Array.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import com.google.gwt.core.client.JavaScriptObject;
44

5-
public class Unit8Array extends JavaScriptObject{
6-
protected Unit8Array(){}
5+
public class Uint8Array extends JavaScriptObject{
6+
protected Uint8Array(){}
77
public final native int length()/*-{
88
return this.length;
99
}-*/;

src/com/akjava/gwt/html5test/client/HTML5Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.akjava.gwt.html5.client.file.FileHandler;
55
import com.akjava.gwt.html5.client.file.FileReader;
66
import com.akjava.gwt.html5.client.file.FileUtils;
7-
import com.akjava.gwt.html5.client.file.Unit8Array;
7+
import com.akjava.gwt.html5.client.file.Uint8Array;
88
import com.akjava.gwt.html5.client.file.webkit.DirectoryCallback;
99
import com.akjava.gwt.html5.client.file.webkit.FileEntry;
1010
import com.akjava.gwt.html5.client.file.webkit.FilePathCallback;
@@ -70,7 +70,7 @@ public void onLoad() {
7070
if (asString) {
7171
text = reader.getResultAsString();
7272
} else {
73-
Unit8Array array = reader.getResultAsBuffer();
73+
Uint8Array array = reader.getResultAsBuffer();
7474
log("length:" + array.length());
7575

7676
StringBuilder builder = new StringBuilder();

0 commit comments

Comments
 (0)