| java.lang.Object org.snmp4j.security.ByteArrayWindow
ByteArrayWindow | public class ByteArrayWindow (Code) | | The ByteArrayWindow provides windowed access to a subarray
of a byte array.
author: Frank Fock version: 1.0 |
Constructor Summary | |
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. |
Method Summary | |
public boolean | equals(Object obj) Indicates whether some other object is "equal to" this one.
Parameters: obj - the reference object with which to compare. | public boolean | equals(ByteArrayWindow other, int maxBytesToCompare) | public byte | get(int i) | public int | getLength() | public int | getOffset() | public byte[] | getValue() | public void | set(int i, byte b) | public void | setValue(byte[] value) |
ByteArrayWindow | public ByteArrayWindow(byte[] value, int offset, int length)(Code) | | 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. Parameters: offset - the starting position of the created window. Parameters: length - the length of the window. |
equals | public boolean equals(Object obj)(Code) | | Indicates whether some other object is "equal to" this one.
Parameters: obj - the reference object with which to compare. true if this object is the same as the obj argument;false otherwise. |
get | public byte get(int i)(Code) | | |
getLength | public int getLength()(Code) | | |
getOffset | public int getOffset()(Code) | | |
getValue | public byte[] getValue()(Code) | | |
set | public void set(int i, byte b)(Code) | | |
setValue | public void setValue(byte[] value)(Code) | | |
|
|