local.tomas.obex.api
Class ObexByteArrayHeader

java.lang.Object
  extended by local.tomas.obex.api.ObexHeader
      extended by local.tomas.obex.api.ObexByteArrayHeader

public class ObexByteArrayHeader
extends ObexHeader


Field Summary
static int HEADER_SIZE
           
static int HEADER_TYPE
           
 
Fields inherited from class local.tomas.obex.api.ObexHeader
APP_PARAMETERS, AUTH_CHALLENGE, AUTH_RESPONSE, BODY_CHUNK, BODY_END, CONNECTION_ID, COUNT, DESCRIPTION, HTTP, LENGTH, NAME, OBJECT_CLASS, TARGET, TIME, TYPE, WHO
 
Constructor Summary
ObexByteArrayHeader(int headerId, byte[] value)
           
ObexByteArrayHeader(int headerId, byte[] value, int start, int length)
           
ObexByteArrayHeader(int headerId, java.util.Date value)
           
ObexByteArrayHeader(int headerId, java.lang.String value)
           
 
Method Summary
 int getHeaderType()
           
 byte[] getValue()
           
 java.lang.String getValueAsString()
           
 java.util.Date getValueAsTime()
           
protected  void sendBodyTo(ObexPacketBuilder builder)
           
 
Methods inherited from class local.tomas.obex.api.ObexHeader
getId, sendTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_SIZE

public static final int HEADER_SIZE
See Also:
Constant Field Values

HEADER_TYPE

public static final int HEADER_TYPE
See Also:
Constant Field Values
Constructor Detail

ObexByteArrayHeader

public ObexByteArrayHeader(int headerId,
                           byte[] value,
                           int start,
                           int length)

ObexByteArrayHeader

public ObexByteArrayHeader(int headerId,
                           byte[] value)

ObexByteArrayHeader

public ObexByteArrayHeader(int headerId,
                           java.lang.String value)

ObexByteArrayHeader

public ObexByteArrayHeader(int headerId,
                           java.util.Date value)
Method Detail

getValue

public byte[] getValue()

getValueAsString

public java.lang.String getValueAsString()

getValueAsTime

public java.util.Date getValueAsTime()
                              throws ObexException
Throws:
ObexException

sendBodyTo

protected void sendBodyTo(ObexPacketBuilder builder)
                   throws ObexException
Specified by:
sendBodyTo in class ObexHeader
Throws:
ObexException

getHeaderType

public int getHeaderType()
Specified by:
getHeaderType in class ObexHeader


Copyright © 2007 null. All Rights Reserved.