public static interface QueueFile.ElementVisitor
| Modifier and Type | Method and Description |
|---|---|
boolean |
read(InputStream in,
int length)
Called once per element.
|
boolean read(InputStream in, int length) throws IOException
in - stream of element data. Reads as many bytes as requested, unless fewer than the
request number of bytes remains, in which case it reads all the remaining bytes. Not
buffered.length - of element data in bytesQueueFile.forEach(com.squareup.tape.QueueFile.ElementReader) operation should continue; If
true, continue, otherwise halt.IOExceptionCopyright © 2015 Square, Inc.. All Rights Reserved.