org.vectomatic.file.impl.SliceImplWebkit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lib-gwt-file Show documentation
Show all versions of lib-gwt-file Show documentation
A GWT encapsulation of the W3C File API
package org.vectomatic.file.impl;
import org.vectomatic.file.Blob;
public class SliceImplWebkit extends SliceImpl {
public final native Blob slice(Blob blob) /*-{
return ('slice' in blob) ? blob.slice() : blob.webkitSlice();
}-*/;
final native Blob slice_(Blob blob, String start) /*-{
return ('slice' in blob) ? blob.slice(start) : blob.webkitSlice(start);
}-*/;
final native Blob slice_(Blob blob, String start, String end) /*-{
return ('slice' in blob) ? blob.slice(start, end) : blob.webkitSlice(start, end);
}-*/;
final native Blob slice_(Blob blob, String start, String end, String contentType) /*-{
return ('slice' in blob) ? blob.slice(start, end, contentType) : blob.webkitSlice(start, end, contentType);
}-*/;
}