DataOutputStream dos = new DataOutputStream(baos);
Tuple t = new Tuple();
t.addAttribute("Hello world!");
try {
t.write(new OutputViewDataOutputStreamWrapper(dos));
} catch (IOException e1) {
e1.printStackTrace();
}
t.addAttribute("2ndAttribute");
try {
t.write(new OutputViewDataOutputStreamWrapper(dos));
} catch (IOException e) {
e.printStackTrace();
}
byte[] ba = "attr1|attr2|3|4|attr5|thisdoesnotbelongtothetuple".getBytes();
int[] of2 = {0,6,12,14,16,22};
t = new Tuple(ba, of2, 5);
try {
t.write(new OutputViewDataOutputStreamWrapper(dos));
} catch (IOException e) {
e.printStackTrace();
}
try {