local.tomas.obex.api
Class ObexPacketBuilder
java.lang.Object
local.tomas.obex.api.ObexPacketBuilder
public class ObexPacketBuilder
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObexPacketBuilder
public ObexPacketBuilder()
ObexPacketBuilder
public ObexPacketBuilder(int code)
throws ObexException
- Throws:
ObexException
ObexPacketBuilder
public ObexPacketBuilder(int code,
java.lang.Integer connId)
throws ObexException
- Throws:
ObexException
getCurrentLength
public int getCurrentLength()
getExpectedLength
public int getExpectedLength()
isFinal
public boolean isFinal()
setFinal
public void setFinal(boolean f)
putLimitedBytes
public int putLimitedBytes(byte[] data,
int start,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
putByte
public void putByte(int data)
throws java.io.IOException
- Throws:
java.io.IOException
putShort
public void putShort(int data)
throws java.io.IOException
- Throws:
java.io.IOException
putInt
public void putInt(int data)
throws java.io.IOException
- Throws:
java.io.IOException
putBytes
public void putBytes(byte[] data,
int start,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
putBytes
public void putBytes(byte[] value)
throws java.io.IOException
- Throws:
java.io.IOException
addHeader
public void addHeader(ObexHeader header)
throws ObexException
- Throws:
ObexException
packetComplete
public boolean packetComplete()
getPacket
public ObexPacket getPacket()
throws ObexException
- Throws:
ObexException
putString
public void putString(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
putChar
public void putChar(char data)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2007 null. All Rights Reserved.