Home | History | Annotate | Download | only in io

Lines Matching refs:bytes

69    * @param len the maximum number of bytes to read from the buffer
84 * @param from the bytes to write
103 * bytes from the input to the output, and closes the streams.
107 * @return the number of bytes copied
129 * Opens an input stream from the supplier, copies all bytes from the
135 * @return the number of bytes copied
152 * Copies all bytes from the input stream to the output stream.
157 * @return the number of bytes copied
176 * Copies all bytes from the readable channel to the writable channel.
181 * @return the number of bytes copied
199 * Reads all bytes from an input stream into a byte array.
203 * @return a byte array containing all the bytes from the stream
233 * bytes} array from the beginning.
235 public static ByteArrayDataInput newDataInput(byte[] bytes) {
236 return new ByteArrayDataInputStream(bytes);
241 * bytes} array, starting at the given position.
246 public static ByteArrayDataInput newDataInput(byte[] bytes, int start) {
247 Preconditions.checkPositionIndex(start, bytes.length);
248 return new ByteArrayDataInputStream(bytes, start);
254 ByteArrayDataInputStream(byte[] bytes) {
255 this.input = new DataInputStream(new ByteArrayInputStream(bytes));
258 ByteArrayDataInputStream(byte[] bytes, int start) {
260 new ByteArrayInputStream(bytes, start, bytes.length - start));
395 * {@code size} bytes before resizing.
543 /** Returns the length of a supplied input stream, in bytes. */
569 * Returns true if the supplied input streams contain the same bytes.
603 * Attempts to read enough bytes from the stream to fill the given byte array,
610 * the bytes.
618 * Attempts to read {@code len} bytes from the stream into the given array
626 * @param len an int specifying the number of bytes to read.
628 * the bytes.
639 * Discards {@code n} bytes of data from the input stream. This method
644 * @param n the number of bytes to skip
646 * the bytes
666 * Process the bytes of a supplied stream
669 * @param processor the object to which to pass the bytes of the stream
700 * checksum object with all of the bytes in the stream
726 * digest object with all of the bytes in the stream
744 * Reads some bytes from an input stream and stores them into the buffer array
745 * {@code b}. This method blocks until {@code len} bytes of input data have
746 * been read into the array, or end of file is detected. The number of bytes
749 * <p>A caller can detect EOF if the number of bytes read is less than
756 * no bytes are read. Otherwise, the first byte read is stored into element
758 * of bytes read is, at most, equal to {@code len}.
763 * @param len an int specifying the number of bytes to read
764 * @return the number of bytes read
786 * offset and is limited to the specified number of bytes.
789 * @param offset the offset in bytes into the underlying stream where