Skip to content

Additional java.io package classes that can be transpiled into javascript by j2cl

License

Notifications You must be signed in to change notification settings

mP1/j2cl-java-io

Repository files navigation

Build Status Coverage Status License Language grade: Java Total alerts J2CL compatible

java.io for j2cl

The following source have been copied from the Apache Harmony project with minor changes. The most significant change is the replacement of calls to Messages to fetch exception messages from a properties file, with the actual String literal.

  • DataInput
  • DataInputStream
  • DataOutput
  • DataOutputStream
  • EOFException
  • PushbackInputStream
  • UTFDataFormatException

This assumes the above classes are not available in com.vertispan.j2cl:jre.

walkingkooka.j2cl.java.io

  • The package walkingkooka.j2cl.java.io is shaded to java.io.

StringDataInput

  • implements java.io.DataInput
  • Reads data from a java.lang.String previous written by StringDataOutput
  • This class is not shaded

Methods

  • readFully throws UnsupportedOperationException
  • readLine throws UnsupportedOperationException
  • readUTF never returns null
  • skipBytes throws UnsupportedOperationException

StringDataOutput

  • implements java.io.DataOutput
  • Writes a java.lang.String which can be consumed by StringDataOutput
  • This class is not shaded

Methods

  • write(byte[]) throws UnsupportedOperationException
  • write(byte[], int, int) throws UnsupportedOperationException
  • writeChars null throws NullPointerException
  • writeUTF null throws NullPointerException

About

Additional java.io package classes that can be transpiled into javascript by j2cl

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages