|Modifier and Type||Method and Description|
Tries to fill the given byte array
Reads up to
void skipBytesToRead(int numBytes) throws IOException
numBytesbytes of memory. In contrast to the
DataInput.skipBytes(int)method, this method always skips the desired number of bytes or throws an
numBytes- The number of bytes to skip.
IOException- Thrown, if any I/O related problem occurred such that the input could not be advanced to the desired position.
int read(byte b, int off, int len) throws IOException
lenbytes of memory and stores it into
bstarting at offset
off. It returns the number of read bytes or -1 if there is no more data left.
b- byte array to store the data to
off- offset into byte array
len- byte length to read
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.