Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2016 Carlos Ballesteros Velasco
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package java.lang;
import com.jtransc.JTranscSystem;
import com.jtransc.JTranscSystemProperties;
import com.jtransc.JTranscVersion;
import com.jtransc.annotation.JTranscMethodBody;
import com.jtransc.annotation.haxe.HaxeMethodBody;
import com.jtransc.annotation.haxe.HaxeMethodBodyPre;
import com.jtransc.io.JTranscConsolePrintStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Map;
import java.util.Properties;
public class System {
static public final InputStream in = new InputStream() {
@Override
public int read() throws IOException {
throw new Error("Not implemented System.in.read()!");
}
};
static public final PrintStream out = new JTranscConsolePrintStream(false);
static public final PrintStream err = new JTranscConsolePrintStream(true);
native public static void setIn(InputStream in);
native public static void setOut(PrintStream out);
native public static void setErr(PrintStream err);
public static long currentTimeMillis() {
return (long) JTranscSystem.fastTime();
}
public static long nanoTime() {
return JTranscSystem.nanoTime();
}
@HaxeMethodBody("HaxeNatives.arraycopy(p0, p1, p2, p3, p4);")
@JTranscMethodBody(target = "js", value = "N.arraycopy(p0, p1, p2, p3, p4);")
@JTranscMethodBody(target = "cpp", value = "JA_0::copy((JA_0*)p0.get(), p1, (JA_0*)p2.get(), p3, p4);")
public static native void arraycopy(Object src, int srcPos, Object dest, int destPos, int length);
//@JTranscMethodBody(target = "cpp", value = "return N::identityHashCode(p0);")
public static int identityHashCode(Object x) {
return (x != null) ? x.$$id : 0;
}
public static Properties getProperties() {
return getProps();
}
public static void setProperties(Properties props) {
Properties myprops = getProps();
for (Map.Entry