Package org.jnode.util

Examples of org.jnode.util.ChannelOutputStream


                (DeviceUtils.getAPI("serial0", SerialPortAPI.class));
            final ByteChannel channel = api.getChannel(null);

            System.out.println("Writing a test string to the serial port.");
            PrintWriter w = new PrintWriter(new OutputStreamWriter(
                new ChannelOutputStream(channel, 1000)));
            w.print("Hello World!\r\n");
            w.print("This is a second line of text!\r\n");
            w.print("Just for fun, a third line!\r\n");
            w.flush();
View Full Code Here

TOP

Related Classes of org.jnode.util.ChannelOutputStream

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.