Made DataOutput2 constructor public so it can be reused outside package.