public class ObexPacket extends Object
Modifier and Type | Field and Description |
---|---|
int |
mHeaderId |
int |
mLength |
byte[] |
mPayload |
Modifier and Type | Method and Description |
---|---|
static ObexPacket |
read(InputStream is)
Create a complete OBEX packet by reading data from an InputStream.
|
static ObexPacket |
read(int headerId,
InputStream is)
Read the remainder of an OBEX packet, with a specified headerId.
|
public int mHeaderId
public int mLength
public byte[] mPayload
public static ObexPacket read(InputStream is) throws IOException
is
- the input stream to read from.IOException
- if an IO exception occurs during read.public static ObexPacket read(int headerId, InputStream is) throws IOException
headerId
- the headerId already read from the stream.is
- the stream to read from, assuming 1 byte have already been read.IOException