public interface SplitInputStream
The contract for spanning the end of the split follows:
hasOverrun() method.availableInSplit() method should return the number of bytes left in the
split (or an estimate) or zero if the split boundary has been crossed.| Modifier and Type | Method and Description |
|---|---|
long |
availableInSplit()
Gets the number of bytes remaining in the split.
|
void |
close()
Close the underlying raw data stream.
|
boolean |
hasOverrun()
Indicates whether the reader has read past the
end of the split.
|
int |
read(byte[] buffer,
int offset,
int length)
Read data from the split input stream.
|
long availableInSplit()
0.boolean hasOverrun()
true if all bytes in the split
has been read, false if any remain.int read(byte[] buffer,
int offset,
int length)
throws IOException
buffer - input bufferoffset - offset to start filling in bufferlength - amount of data to readIOException - thrown if an I/O error occursvoid close()
Copyright © 2016 Actian Corporation. All rights reserved.