Home | History | Annotate | Download | only in obex

Lines Matching refs:headerID

285      * @param headerID the identifier to include in the message
292 public void setHeader(int headerID, Object headerValue) {
295 switch (headerID) {
442 if ((headerID >= 0x30) && (headerID <= 0x3F)) {
447 mUnicodeUserDefined[headerID - 0x30] = (String)headerValue;
452 if ((headerID >= 0x70) && (headerID <= 0x7F)) {
455 mSequenceUserDefined[headerID - 0x70] = null;
461 mSequenceUserDefined[headerID - 0x70] = new byte[((byte[])headerValue).length];
462 System.arraycopy(headerValue, 0, mSequenceUserDefined[headerID - 0x70],
463 0, mSequenceUserDefined[headerID - 0x70].length);
469 if ((headerID >= 0xB0) && (headerID <= 0xBF)) {
473 mByteUserDefined[headerID - 0xB0] = (Byte)headerValue;
479 if ((headerID >= 0xF0) && (headerID <= 0xFF)) {
482 mIntegerUserDefined[headerID - 0xF0] = null;
492 mIntegerUserDefined[headerID - 0xF0] = (Long)headerValue;
502 * @param headerID the header identifier whose value is to be returned
506 * @throws IllegalArgumentException if the <code>headerID</code> is not one
511 public Object getHeader(int headerID) throws IOException {
513 switch (headerID) {
546 if ((headerID >= 0x30) && (headerID <= 0x3F)) {
547 return mUnicodeUserDefined[headerID - 0x30];
550 if ((headerID >= 0x70) && (headerID <= 0x7F)) {
551 return mSequenceUserDefined[headerID - 0x70];
554 if ((headerID >= 0xB0) && (headerID <= 0xBF)) {
555 return mByteUserDefined[headerID - 0xB0];
558 if ((headerID >= 0xF0) && (headerID <= 0xFF)) {
559 return mIntegerUserDefined[headerID - 0xF0];