/j2cl-java-io

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

Primary LanguageJavaApache License 2.0Apache-2.0

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