public abstract class ByteArrayInterface extends Object implements Reusable
Description:
Copyright: Copyright (c) 2009
Company:
| Modifier and Type | Field | Description |
|---|---|---|
byte[] |
data |
Container of information.
|
protected int[] |
hashBuffer |
Contains the calculated hash code of this instance.
|
int |
length |
Current length of this byte array.
|
int |
offset |
Offset of this byte array.
|
| Constructor | Description |
|---|---|
ByteArrayInterface() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract ByteArrayInterface |
append(byte b) |
|
abstract ByteArrayInterface |
append(byte[] a) |
|
abstract ByteArrayInterface |
append(byte[] a,
int p_offset,
int p_length) |
|
abstract ByteArrayInterface |
append(ByteArrayInterface a) |
|
abstract ByteArrayInterface |
append(char... str) |
|
abstract ByteArrayInterface |
append(char ch) |
|
abstract ByteArrayInterface |
append(int n) |
|
abstract ByteArrayInterface |
append(String str) |
|
abstract ByteArrayInterface |
appendAsHexString(byte[] data,
int offset,
int length) |
|
abstract ByteArrayInterface |
appendRandomHexChars(int length) |
|
abstract ByteArrayInterface |
copy(byte[] a) |
|
abstract ByteArrayInterface |
copy(byte[] a,
int p_offset,
int p_length) |
|
abstract ByteArrayInterface |
copy(String data) |
|
boolean |
equals(byte[] data,
int offset,
int length) |
Check if the given byte array is equal to this instance or not.
|
boolean |
equals(Object obj) |
|
abstract int |
getLength() |
|
abstract void |
reset() |
Reset all the parameter of the instance to the initial value, so that it can be reused without any problem.
|
abstract String |
toString() |
public byte[] data
public int offset
public int length
protected int[] hashBuffer
public abstract ByteArrayInterface copy(byte[] a)
public abstract ByteArrayInterface copy(byte[] a, int p_offset, int p_length)
public abstract ByteArrayInterface copy(String data)
public abstract ByteArrayInterface append(byte[] a)
public abstract ByteArrayInterface append(byte[] a, int p_offset, int p_length)
public abstract ByteArrayInterface append(ByteArrayInterface a)
public abstract ByteArrayInterface append(char ch)
public abstract ByteArrayInterface append(char... str)
public abstract ByteArrayInterface append(byte b)
public abstract ByteArrayInterface append(int n)
public abstract ByteArrayInterface append(String str)
public abstract ByteArrayInterface appendRandomHexChars(int length)
public abstract ByteArrayInterface appendAsHexString(byte[] data, int offset, int length)
public abstract int getLength()
public abstract void reset()
Reusablepublic boolean equals(byte[] data,
int offset,
int length)
Copyright © 2025. All rights reserved.