break;
case 2: //binary
dataSegLen = EndianUtils.readSwappedInteger(in);
SubInputStream sin = new SubInputStream(in, dataSegLen);
ASCIIHexOutputStream hexOut = new ASCIIHexOutputStream(gen.getOutputStream());
IOUtils.copy(sin, hexOut);
gen.newLine();
break;
case 3: //EOF
finished = true;