@Test public void shouldMaskExactMultipleBuffer() throws Exception { Masker decoder = newMasker(new byte[]{0x01, 0x02, 0x03, 0x04}); ChannelBuffer originalBuf = wrappedBuffer(new byte[]{0x11, 0x12, 0x13, 0x14, 0x21, 0x22, 0x23, 0x24}); ChannelBuffer maskedBuf = decoder.applyMask(originalBuf); assertEquals(wrappedBuffer(new byte[]{0x10, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20, 0x20}), maskedBuf); }
public abstract ChannelBuffer applyMask(ChannelBuffer buffer);
Masker { public abstract ChannelBuffer applyMask(ChannelBuffer buffer); }
Masker { public abstract ChannelBuffer applyMask(ChannelBuffer buffer);  }
Masker { public abstract ChannelBuffer applyMask(ChannelBuffer buffer);  abstract ChannelBuffer applyMask(ChannelBuffer buffer); abstract ChannelBuffer undoMask(ChannelBuffer buffer); }
Masker { public abstract ChannelBuffer applyMask(ChannelBuffer buffer);  abstract ChannelBuffer applyMask(ChannelBuffer buffer); abstract ChannelBuffer undoMask(ChannelBuffer buffer); static final Masker IDENTITY_MASKER; }