com.upokecenter.util.ArrayWriter

com.upokecenter.util.ArrayWriter

public final class ArrayWriter extends Object implements IWriter

An array of bytes that grows as needed.

Constructors

Methods

Method Details

Clear

public void Clear()

Offers a fast way to reset the length of the array writer's data to 0.

ToArray

public byte[] ToArray()

Generates an array of all bytes written so far to it.

Returns:

write

public void write(int byteValue)

Writes an 8-bit byte to the array.

Specified by:

Parameters:

write

public void write(byte[] src, int offset, int length)

Writes a series of bytes to the array.

Specified by:

Parameters:

Throws:

Back to Encoding start page.