Class Substitutions

java.lang.Object
org.teavm.extension.spi.substitution.SimpleSubstitutionPolicy
dev.gmitch215.bytebox.io.Substitutions
All Implemented Interfaces:
org.teavm.extension.spi.substitution.SubstitutionPolicy

public final class Substitutions extends org.teavm.extension.spi.substitution.SimpleSubstitutionPolicy
Points java.io.ObjectOutputStream and ObjectInputStream at the ones in this package.

The class library has neither, so nothing is being replaced: they are being supplied. A project compiles against the JDK's and the reference is rewritten when the program is compiled to WebAssembly, which is what lets a library that serialises the ordinary way work unchanged.

Since:
1.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contribute(org.teavm.extension.spi.substitution.SubstitutionSink sink)
     

    Methods inherited from class org.teavm.extension.spi.substitution.SimpleSubstitutionPolicy

    inPackage, inPackage, named, namePattern, not

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Substitutions

      public Substitutions()
  • Method Details

    • contribute

      public void contribute(org.teavm.extension.spi.substitution.SubstitutionSink sink)