All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jtransc.internal.JTranscGenericCharset Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
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