3435363738394041
/** * Default constructor */ public CountingOutputStream() { dataOutput = new ExtendedByteArrayDataOutput(); reset(); }
714715716717718719720721
*/ public ExtendedDataOutput createExtendedDataOutput() { if (useUnsafeSerialization) { return new UnsafeByteArrayOutputStream(); } else { return new ExtendedByteArrayDataOutput(); } }
728729730731732733734735
*/ public ExtendedDataOutput createExtendedDataOutput(int expectedSize) { if (useUnsafeSerialization) { return new UnsafeByteArrayOutputStream(expectedSize); } else { return new ExtendedByteArrayDataOutput(expectedSize); } }
744745746747748749750751
public ExtendedDataOutput createExtendedDataOutput(byte[] buf, int pos) { if (useUnsafeSerialization) { return new UnsafeByteArrayOutputStream(buf, pos); } else { return new ExtendedByteArrayDataOutput(buf, pos); } }
11441145114611471148114911501151
11581159116011611162116311641165
11741175117611771178117911801181