Home | History | Annotate | Download | only in obex

Lines Matching refs:read

35      * @param is the input stream to read from.
36 * @return the OBEX packet read.
37 * @throws IOException if an IO exception occurs during read.
39 public static ObexPacket read(InputStream is) throws IOException {
40 int headerId = is.read();
41 return read(headerId, is);
45 * Read the remainder of an OBEX packet, with a specified headerId.
46 * @param headerId the headerId already read from the stream.
47 * @param is the stream to read from, assuming 1 byte have already been read.
48 * @return the OBEX packet read.
51 public static ObexPacket read(int headerId, InputStream is) throws IOException {
52 // Read the 2 byte length field from the stream
53 int length = is.read();
54 length = (length << 8) + is.read();
61 // First three bytes already read, compensating for this
63 bytesReceived = is.read(temp);
65 bytesReceived += is.read(temp, bytesReceived, temp.length - bytesReceived);