/**
* @param args
* @throws InterruptedException
*/
public static void main(String[] args) throws InterruptedException {
NetStreamReceiver net = null;
try {
net = new NetStreamReceiver("localhost", 2001, true);
} catch (UnknownHostException e1) {
System.err.println(e1.toString());
} catch (IOException e1) {
System.err.println(e1.toString());
}
ThreadProxyPipe pipe = net.getDefaultStream();
pipe.addSink(new SinkAdapter() {
public void graphAttributeAdded(String sourceId, long timeId,
String attribute, Object value) {
validate(attribute, value);