/gwt-nio

J2cl/GWT support for java.nio packages, forked from the PlayN project

Primary LanguageJavaApache License 2.0Apache-2.0

GitHub license Sonatype Nexus (Releases)

GWT/J2CL emulation for java.nio packages

This project provides emulation for the java.nio packages, forked from the quake2 project. There is also a utility class included to allow wrapping and unwrapping JS Typed Arrays.

To use in GWT2, depend on this Jar in your project, and add this to your .gwt.xml module file:

```xml
<dependency>
    <groupId>org.treblereel.gwt.nio</groupId>
    <artifactId>gwt-nio</artifactId>
    <version>LATEST_VERSION</version>
</dependency>
```


<inherits name="org.gwtproject.nio.GwtNioSupport" />

The org.gwtproject.nio.TypedArrayHelper class contains to helper methods, to turn java.nio.ByteBuffers into JavaScript ArrayBuffer (technically ArrayBufferView, but you can get an ArrayBuffer from there) and back again.

Take care in forking this repository, we may rewrite history to remove unrelated PlayN commits.