Is there a way to implement a write / read file with gwt on the client side? I tried with java.io.File, java.io.Writer ... I failed.
thanks in advance!
Update: see my own answer for the solution
I recently came across a library called client-io .
A simple library that brings the flash file APIs to regular web applications through GWT. ClientIO helps you offload part of the generation file for the client, saving resources and computing to the server. Working demo - http://ahome-it.imtqy.com/ahome-client-io/
, . GWT Java. IO RPC - -.
HTML5 . lib-gwt-file. DND. , . HTML5 FileAPI .
, URI . . Google Chrome. . :
public static native void setWindowHref(String url)/*-{ $wnd.location.href = url; }-*/;
- Downloadify. . .
In GWT, classes in the client folder are compiled only in javascript, so you cannot use
java.io
since GWT does not provide package compilation
Therefore, you should write a text file only through RPC.
Source: https://habr.com/ru/post/1795342/More articles:Как использовать аутентификацию Google App для пользовательского веб-приложения PHP? - phpIn Java, empty HashMap space allocation - javaНаследование из базового класса System.Web.UI.UserControl - inheritanceАвтоматический вход с учетной записью Active Directory в С# ASP.Net Website - authenticationAndroid and GSON throw No-Args Constructor no exception found - javaHow skinny should be controllers, and how should fat be models? - model-view-controllerGL_LIGHT creates only one light source - c ++Reset all selected objects - iosWhat code do I need to collapse a div when another is open? - javascriptDeny section numbers & \ renewcommand {\ chaptername} - latexAll Articles