org.vectomatic.file.impl.SliceImplMozilla 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 SliceImplMozilla extends SliceImpl {
public final native Blob slice(Blob blob) /*-{
return ('slice' in blob) ? blob.slice() : blob.mozSlice();
}-*/;
final native Blob slice_(Blob blob, String start) /*-{
return ('slice' in blob) ? blob.slice(start) :blob.mozSlice(start);
}-*/;
final native Blob slice_(Blob blob, String start, String end) /*-{
return ('slice' in blob) ? blob.slice(start, end) : blob.mozSlice(start, end);
}-*/;
final native Blob slice_(Blob blob, String start, String end, String contentType) /*-{
return ('slice' in blob) ? blob.slice(start, end, contentType) : blob.mozSlice(start, end, contentType);
}-*/;
}