@Test public void resetContentPosition() { BaseByteArrayWriter byteArrayWriter = new BaseByteArrayWriter(dataWriter, posWriter, lenWriter, true, lastPosWriter, lastPosReader); Whitebox.setInternalState(byteArrayWriter, "curPos", 1L); byteArrayWriter.resetContentPosition(); assertEquals(0L, (long) Whitebox.getInternalState(byteArrayWriter, "curPos")); }
@Override public void resetContentPosition() { curPos = 0; }
BaseByteArrayWriter implements ByteArrayWriter { @Override public void resetContentPosition() { curPos = 0; } }
BaseByteArrayWriter implements ByteArrayWriter { @Override public void resetContentPosition() { curPos = 0; } BaseByteArrayWriter(ByteWriter dataWriter, LongWriter posWriter, IntWriter lenWriter, boolean isOverwrite, @Nullable LongWriter lastPosWriter, @Nullable LongReader lastPosReader); }
BaseByteArrayWriter implements ByteArrayWriter { @Override public void resetContentPosition() { curPos = 0; } BaseByteArrayWriter(ByteWriter dataWriter, LongWriter posWriter, IntWriter lenWriter, boolean isOverwrite, @Nullable LongWriter lastPosWriter, @Nullable LongReader lastPosReader); @Override void put(long pos, byte[] val); @Override OutputStream putStream(final long pos); @Override void resetContentPosition(); @Override void release(); }
BaseByteArrayWriter implements ByteArrayWriter { @Override public void resetContentPosition() { curPos = 0; } BaseByteArrayWriter(ByteWriter dataWriter, LongWriter posWriter, IntWriter lenWriter, boolean isOverwrite, @Nullable LongWriter lastPosWriter, @Nullable LongReader lastPosReader); @Override void put(long pos, byte[] val); @Override OutputStream putStream(final long pos); @Override void resetContentPosition(); @Override void release();  }