// Path: src/com/akjava/gwt/html5/client/file/callback/ProgressEventCallback.java
// public interface ProgressEventCallback {
// public void progressEventCallback(ProgressEvent progressEvent);
// }


import com.akjava.gwt.html5.client.file.callback.ProgressEventCallback;
import com.google.gwt.core.client.JavaScriptObject;

      var bb = new $wnd.BlobBuilder(); // Note: window.WebKitBlobBuilder in Chrome 12.
      var text='hello';
      
      this.write(bb.getBlob('text/plain'));
  	}-*/;
	
	
	public  final native void write(JavaScriptObject blob)/*-{
    this.write(blob);
	}-*/;
	
	public final long getLength(){
		return (long)length();
	}
	
	

	public  final native void truncate(double length)/*-{
    this.truncate(length);
	}-*/;

	
	public  final native void seek(double value)/*-{
    return this.seek(value);
	}-*/;
	
	public  final native double length()/*-{
    return this.length;
	}-*/;
	

// Path: src/com/akjava/gwt/html5/client/file/callback/ProgressEventCallback.java
// public interface ProgressEventCallback {
// public void progressEventCallback(ProgressEvent progressEvent);
// }


// Path: src/com/akjava/gwt/html5/client/file/FileWriter.java
import com.akjava.gwt.html5.client.file.callback.ProgressEventCallback;
import com.google.gwt.core.client.JavaScriptObject;

      var bb = new $wnd.BlobBuilder(); // Note: window.WebKitBlobBuilder in Chrome 12.
      var text='hello';
      
      this.write(bb.getBlob('text/plain'));
  	}-*/;
	
	
	public  final native void write(JavaScriptObject blob)/*-{
    this.write(blob);
	}-*/;
	
	public final long getLength(){
		return (long)length();
	}
	
	

	public  final native void truncate(double length)/*-{
    this.truncate(length);
	}-*/;

	
	public  final native void seek(double value)/*-{
    return this.seek(value);
	}-*/;
	
	public  final native double length()/*-{
    return this.length;
	}-*/;
	

	public  final native void setOnWriteEnd(ProgressEventCallback callback)/*-{
