Package dev.blaauwendraad.masker.json
Class MaskingState
java.lang.Object
dev.blaauwendraad.masker.json.MaskingState
Represents the state of the
JsonMasker
at a given point in time during the JsonMasker.mask(byte[])
operation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
byte
int
byte[]
void
int
peek()
void
setByteAtCurrentIndex
(byte newByte) void
setCurrentIndex
(int currentIndex) void
setMessage
(byte[] newMessage)
-
Constructor Details
-
MaskingState
public MaskingState(byte[] message, int currentIndex)
-
-
Method Details
-
incrementCurrentIndex
public void incrementCurrentIndex() -
setCurrentIndex
public void setCurrentIndex(int currentIndex) -
setMessage
public void setMessage(byte[] newMessage) -
byteAtCurrentIndex
public byte byteAtCurrentIndex() -
setByteAtCurrentIndex
public void setByteAtCurrentIndex(byte newByte) -
byteAtCurrentIndexMinusOne
public byte byteAtCurrentIndexMinusOne() -
currentIndex
public int currentIndex() -
messageLength
public int messageLength() -
getMessage
public byte[] getMessage() -
peek
-