@Override
  public byte readByte(int pos) {
    try {
      return super.readByte(pos);
    } catch (IndexOutOfBoundsException e) {
      throw new PdxSerializationException("Failed reading a PDX byte field", e);
    }
  }
Create a pdx input stream by copying another. A somewhat shallow copy is made.

@param copy the input stream to copy. Note that this copy stream will be read by this class (a
       copy is not made) so it should not be changed externally.
geode-core/src/main/java/org/apache/geode/pdx/internal/PdxInputStream.java