Add name to platforms
This commit is contained in:
@@ -101,6 +101,10 @@ abstract public class Platform {
|
|||||||
return vm;
|
return vm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Get the name of the platform
|
||||||
|
*/
|
||||||
|
abstract public String getName();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return an InputStream or null if not found for a particular file name.
|
* Return an InputStream or null if not found for a particular file name.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ import org.luaj.vm.Platform;
|
|||||||
public class J2meMidp10Cldc10Platform extends Platform {
|
public class J2meMidp10Cldc10Platform extends Platform {
|
||||||
protected MIDlet midlet;
|
protected MIDlet midlet;
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return "j2me";
|
||||||
|
}
|
||||||
|
|
||||||
public J2meMidp10Cldc10Platform(MIDlet midlet) {
|
public J2meMidp10Cldc10Platform(MIDlet midlet) {
|
||||||
this.midlet = midlet;
|
this.midlet = midlet;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,11 @@ import org.luaj.vm.LuaState;
|
|||||||
import org.luaj.vm.Platform;
|
import org.luaj.vm.Platform;
|
||||||
|
|
||||||
public class J2sePlatform extends Platform {
|
public class J2sePlatform extends Platform {
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return "j2se";
|
||||||
|
}
|
||||||
|
|
||||||
public Reader createReader(InputStream inputStream) {
|
public Reader createReader(InputStream inputStream) {
|
||||||
return new InputStreamReader(inputStream);
|
return new InputStreamReader(inputStream);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
version: 0.37
|
version: 0.38
|
||||||
|
|||||||
Reference in New Issue
Block a user