FileDocCategorySizeDatePackage
ByteArrayDumpGetter.javaAPI DocExample375Mon May 31 22:51:38 BST 2004com.darwinsys.io

ByteArrayDumpGetter

public class ByteArrayDumpGetter extends Object implements DumpGetter
A Getter that reads from an in-memory array of bytes

Fields Summary
private byte[]
data
private int
offset
private int
max
Constructors Summary
public ByteArrayDumpGetter(byte[] d)

		data = d;
		offset = 0;
		max = data.length;
	
Methods Summary
public intget()

		if (offset < max)
			return data[offset++];
		return -1;