
com.jtransc.internal.JTranscGenericCharset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt-core Show documentation
Show all versions of jtransc-rt-core Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
package com.jtransc.internal;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CharsetEncoder;
public class JTranscGenericCharset extends Charset {
public JTranscGenericCharset(String canonicalName, String[] aliases) {
super(canonicalName, aliases);
}
@Override
public boolean contains(Charset cs) {
return this == cs;
}
@Override
public CharsetDecoder newDecoder() {
throw new RuntimeException("No newDecoder for " + this.name());
}
@Override
public CharsetEncoder newEncoder() {
throw new RuntimeException("No newEncoder for " + this.name());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy