Make DataOutput2 constructor public

The class is public so the constructor should also be public so the class can be reused outside package.
The DataInput2 class already have a public constructor.