All Packages Class Hierarchy This Package Previous Next Index
Class muffin.io.ByteArray
java.lang.Object
|
+----muffin.io.ByteArray
- public class ByteArray
- extends Object
Class used to represent an array of bytes as an Object.
- Author:
- Mark Boyns
-
bytes
-
-
offset
-
-
ByteArray()
- Create a ByteArray with the default size.
-
ByteArray(byte[])
- Create a ByteArray from an array of bytes.
-
ByteArray(int)
- Create a ByteArray with a specific default size.
-
ByteArray(String)
- Create a ByteArray from a String.
-
append(byte)
- Append a byte.
-
append(byte[])
- Append an array of bytes.
-
append(ByteArray)
- Append a ByteArray.
-
append(String)
- Append a String.
-
getBytes()
- Return the bytes.
-
length()
- Return the number of bytes.
-
main(String[])
-
-
toString()
- Convert to String.
bytes
public byte bytes[]
offset
public int offset
ByteArray
public ByteArray()
- Create a ByteArray with the default size.
ByteArray
public ByteArray(int size)
- Create a ByteArray with a specific default size.
ByteArray
public ByteArray(String s)
- Create a ByteArray from a String.
ByteArray
public ByteArray(byte b[])
- Create a ByteArray from an array of bytes.
append
public void append(byte ch)
- Append a byte.
append
public void append(ByteArray b)
- Append a ByteArray.
append
public void append(byte b[])
- Append an array of bytes.
append
public void append(String s)
- Append a String.
toString
public String toString()
- Convert to String.
- Overrides:
- toString in class Object
getBytes
public byte[] getBytes()
- Return the bytes.
length
public int length()
- Return the number of bytes.
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index