java.lang.Object
org.snmp4j.security.ByteArrayWindow
The
ByteArrayWindow
provides windowed access to a subarray
of a byte array.- Version:
- 1.0
- Author:
- Frank Fock
-
Constructor Summary
ConstructorDescriptionByteArrayWindow
(byte[] value, int offset, int length) Creates a byte array window that provides access to the bytes in the supplied array between the position starting at the supplied offset. -
Method Summary
-
Constructor Details
-
ByteArrayWindow
public ByteArrayWindow(byte[] value, int offset, int length) Creates a byte array window that provides access to the bytes in the supplied array between the position starting at the supplied offset.- Parameters:
value
- the underlying byte array.offset
- the starting position of the created window.length
- the length of the window.
-
-
Method Details
-
getValue
public byte[] getValue() -
setValue
public void setValue(byte[] value) -
getOffset
public int getOffset() -
set
public void set(int i, byte b) -
get
public byte get(int i) -
getLength
public int getLength() -
equals
Indicates whether some other object is "equal to" this one. -
equals
-
hashCode
public int hashCode()
-