File
Doc
Category
Size
Date
Package
ByteArrayDumpGetter.java
API Doc
Example
375
Mon May 31 22:51:38 BST 2004
com.darwinsys.io
ByteArrayDumpGetter
java.lang.Object
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
int
get
()
if (offset < max) return data[offset++]; return -1;
Java Code Source