Package com.sun.jna

Examples of com.sun.jna.StringArray


        }

        // exec to self
        LIBC.execv(
            Daemon.getCurrentExecutable(),
            new StringArray(args.toArray(new String[args.size()])));
        throw new IOException("Failed to exec "+LIBC.strerror(Native.getLastError()));
    }
View Full Code Here


            TypeConverter stringConverter = new TypeConverter() {
                public Object toNative(Object value, ToNativeContext context) {
                    if (value == null)
                        return null;
                    if (value instanceof String[]) {
                        return new StringArray((String[])value, true);
                    }
                    return new WString(value.toString());
                }
                public Object fromNative(Object value, FromNativeContext context) {
                    if (value == null)
View Full Code Here

TOP

Related Classes of com.sun.jna.StringArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.