/** * play and show stream * * @author matecsaba */ public class visReceiver { /** * the main * * @param args arguments * @throws Exception on error */ public static void main(String[] args) throws Exception { if (args.length < 5) { System.out.println("usage: java this "); return; } devicer lin = devicer.getPlayback(args[0]); packet knd = packer.receiver(args[2], args[3], args[4]).string2kind(args[1]); byte[] buf = new byte[consts.payl]; visDoer vu = new visDoer(); for (;;) { int i = knd.readKind(buf); if (i < 1) { break; } lin.write(buf, i); vu.doer(buf, i); } } }