FileDocCategorySizeDatePackage
TestLibrary.javaAPI DocAndroid 1.5 API1614Wed May 06 22:41:04 BST 2009org.apache.harmony.luni.tests.java.lang

TestLibrary

public class TestLibrary extends Object

Fields Summary
Constructors Summary
TestLibrary()

        InputStream in = TestLibrary.class.getResourceAsStream("/libTestLibrary.so");
        try {
            File tmp = File.createTempFile("libTestLibrary", "so");
            tmp.deleteOnExit();
            FileOutputStream out = new FileOutputStream(tmp);
            while (in.available() > 0) {
                out.write(in.read()); // slow
            }
            in.close();
            out.close();
            Runtime.getRuntime().load(tmp.getAbsolutePath());
        } catch (FileNotFoundException e) {
        } catch (IOException e) {
        }
    
Methods Summary
booleancheckString()

        if(printName().equals("TestLibrary"))
            return true;
        return false;
    
private native java.lang.StringprintName()