gwt-nio

J2CL/GWT support for java.nio packages

License

License

Categories

Categories

GWT (Google Web Toolkit) User Interface Web Frameworks
GroupId

GroupId

com.vertispan.nio
ArtifactId

ArtifactId

gwt-nio
Last Version

Last Version

1.0-alpha-1
Release Date

Release Date

Type

Type

jar
Description

Description

gwt-nio
J2CL/GWT support for java.nio packages
Project URL

Project URL

http://www.gwtproject.org/
Source Code Management

Source Code Management

https://github.com/vertispan/gwt-nio/tree/master

Download gwt-nio

How to add to project

<!-- https://jarcasting.com/artifacts/com.vertispan.nio/gwt-nio/ -->
<dependency>
    <groupId>com.vertispan.nio</groupId>
    <artifactId>gwt-nio</artifactId>
    <version>1.0-alpha-1</version>
</dependency>
// https://jarcasting.com/artifacts/com.vertispan.nio/gwt-nio/
implementation 'com.vertispan.nio:gwt-nio:1.0-alpha-1'
// https://jarcasting.com/artifacts/com.vertispan.nio/gwt-nio/
implementation ("com.vertispan.nio:gwt-nio:1.0-alpha-1")
'com.vertispan.nio:gwt-nio:jar:1.0-alpha-1'
<dependency org="com.vertispan.nio" name="gwt-nio" rev="1.0-alpha-1">
  <artifact name="gwt-nio" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.vertispan.nio', module='gwt-nio', version='1.0-alpha-1')
)
libraryDependencies += "com.vertispan.nio" % "gwt-nio" % "1.0-alpha-1"
[com.vertispan.nio/gwt-nio "1.0-alpha-1"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.elemental2 : elemental2-core jar 1.0.0-RC1

Project Modules

There are no modules declared in this project.

GWT/J2CL emulation for java.nio packages

This project provides emulation for the java.nio packages, forked from the PlayN 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:

<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. For legacy reasons, HasArrayBufferView also still exists from the original PlayN project, and ByteBuffer still implements it, but using the TypedArrayHelper is encouraged for both directions of wrapping and unwrapping.

The interface TypedArrayHelper.Wrapper still exists, but its use is discouraged.

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

com.vertispan.nio

Vertispan

Professional Java and GWT development services and support

Versions

Version
1.0-alpha-1