Android Open Source - android-nfc-lib Nfc Payload Header






From Project

Back to project page android-nfc-lib.

License

The source code is released under:

MIT License

If you think the Android project android-nfc-lib listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * NfcPayloadHeader.java/*from   w w w  .  java 2s .  c o  m*/
 * NfcLibrary project.
 *
 * Created by : Daneo van Overloop - 17/6/2014.
 *
 * The MIT License (MIT)
 *
 * Copyright (c) 2014 AppFoundry. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 */

package be.appfoundry.nfclibrary.constants;

/**
 * Class containing all payload headers which can be currently used according to the NFC Forum's specification.
 * This is done to allow the library user to specify the needed type.
 * @author Daneo Van Overloop
 * NfcLibrary
 * Created on 08/04/14.
 */
public class NfcPayloadHeader {

    public static final byte CUSTOM_SCHEME = 0x00;
    /**
     * This URI is in the format of http://www.
     */
    public static final byte HTTP_WWW = 0x01;
    /**
     * This URI is in the format of https://www.
     */
    public static final byte HTTPS_WWW = 0x02;
    /**
     * This URI is in the format of http://.
     */
    public static final byte HTTP = 0x03;
    /**
     * This URI is in the format of https://.
     */
    public static final byte HTTPS = 0x04;
    /**
     * This URI is in the format of tel:
     */
    public static final byte TEL = 0x05;
    /**
     * This URI is in the format of mailto:.
     */
    public static final byte MAILTO = 0x06;
    /**
     * This URI is in the format of ftp://anonymous:anonymous@
     */
    public static final byte FTP_ANONYMOUS = 0x07;
    /**
     * This URI is in the format of ftp://ftp.
     */
    public static final byte FTP_URI = 0x08;
    /**
     * This URI is in the format of ftps://
     */
    public static final byte FTPS = 0x09;
    /**
     * This URI is in the format of sftp://
     */
    public static final byte SFTP = 0x0A;
    /**
     * This URI is in the format of smb://
     */
    public static final byte SMB = 0x0B;
    /**
     * This URI is in the format of nfs://
     */
    public static final byte NFS = 0x0C;
    /**
     * This URI is in the format of ftp://
     */
    public static final byte FTP = 0x0D;
    /**
     * This URI is in the format of dav://
     */
    public static final byte DAV = 0x0E;
    /**
     * This URI is in the format of news://
     */
    public static final byte NEWS = 0x0F;
    /**
     * This URI is in the format of telnet://
     */
    public static final byte TELNET = 0x10;
    /**
     * This URI is in the format of imap:
     */
    public static final byte IMAP = 0x11;
    /**
     * This URI is in the format of rtsp://.
     */
    public static final byte RTSP = 0x12;
    /**
     * This URI is in the format of urn:
     */
    public static final byte URN = 0x13;
    /**
     * This URI is in the format of pop:
     */
    public static final byte POP = 0x14;
    /**
     * This URI is in the format of sip:
     */
    public static final byte SIP = 0x15;
    /**
     * This URI is in the format of sips:
     */
    public static final byte SIPS = 0x16;
    /**
     * This URI is in the format of tftp:
     */
    public static final byte TFTP = 0x17;
    /**
     * This URI is in the format of btspp://
     */
    public static final byte BT_SPP = 0x18;
    /**
     * This URI is in the format of bt12cap://.
     */
    public static final byte BT_12CAP = 0x19;
    /**
     * This URI is in the format of btgoep://.
     */
    public static final byte BT_GOEP = 0x1A;
    /**
     * This URI is in the format of tcpobex://
     */
    public static final byte TCP_OBEX = 0x1B;
    /**
     * This URI is in the format of irdaobex://
     */
    public static final byte IRDA_OBEX = 0x1C;
    /**
     * This URI is in the format of file://
     */
    public static final byte FILE = 0x1D;
    /**
     * This URI is in the format of urn:epc:id:
     */
    public static final byte URN_EPC_ID = 0x1E;
    /**
     * This URI is in the format of urn:epc:tag:
     */
    public static final byte URN_EPC_TAG = 0x1F;

    /**
     * This URI is in the format of urn:epc:pat:
     */
    public static final byte URN_EPC_PAT = 0x20;

    /**
     * This URI is in the format of urn:epc:raw:
     */
    public static final byte URN_EPC_RAW = 0x21;

    /**
     * This URI is in the format of urn:epc:
     */
    public static final byte URN_EPC = 0x22;

    /**
     * This URI is in the format of urn:nfc:
     */
    public static final byte URN_NFC = 0x23;

}




Java Source Code List

be.appfoundry.nfclibrary.activities.NfcActivity.java
be.appfoundry.nfclibrary.constants.NfcPayloadHeader.java
be.appfoundry.nfclibrary.constants.NfcType.java
be.appfoundry.nfclibrary.exceptions.InsufficientCapacityException.java
be.appfoundry.nfclibrary.exceptions.ReadOnlyTagException.java
be.appfoundry.nfclibrary.exceptions.TagNotPresentException.java
be.appfoundry.nfclibrary.exceptions.TagNotWritableException.java
be.appfoundry.nfclibrary.implementation.NfcActivity.java
be.appfoundry.nfclibrary.implementation.TestEmptyFieldsNfcActivity.java
be.appfoundry.nfclibrary.implementation.TestFilledFieldsNfcActivity.java
be.appfoundry.nfclibrary.tasks.GenericTask.java
be.appfoundry.nfclibrary.tasks.interfaces.AsyncOperationCallback.java
be.appfoundry.nfclibrary.tasks.interfaces.AsyncUiCallback.java
be.appfoundry.nfclibrary.utilities.TestUtilities.java
be.appfoundry.nfclibrary.utilities.async.AbstractFailsTestsAsync.java
be.appfoundry.nfclibrary.utilities.async.AbstractNfcAsync.java
be.appfoundry.nfclibrary.utilities.async.GenericTaskTestsAsync.java
be.appfoundry.nfclibrary.utilities.async.WriteBluetoothNfcAsync.java
be.appfoundry.nfclibrary.utilities.async.WriteCallbackNfcAsync.java
be.appfoundry.nfclibrary.utilities.async.WriteEmailNfcAsync.java
be.appfoundry.nfclibrary.utilities.async.WriteGeoLocationNfcAsync.java
be.appfoundry.nfclibrary.utilities.async.WritePhoneNfcAsync.java
be.appfoundry.nfclibrary.utilities.async.WriteSmsNfcAsync.java
be.appfoundry.nfclibrary.utilities.async.WriteUriNfcAsync.java
be.appfoundry.nfclibrary.utilities.interfaces.AsyncNfcWriteOperation.java
be.appfoundry.nfclibrary.utilities.interfaces.NdefWrite.java
be.appfoundry.nfclibrary.utilities.interfaces.NfcMessageUtility.java
be.appfoundry.nfclibrary.utilities.interfaces.NfcReadUtility.java
be.appfoundry.nfclibrary.utilities.interfaces.NfcWriteUtility.java
be.appfoundry.nfclibrary.utilities.interfaces.WriteUtility.java
be.appfoundry.nfclibrary.utilities.sync.NdefWriteImpl.java
be.appfoundry.nfclibrary.utilities.sync.NfcMessageUtilityImpl.java
be.appfoundry.nfclibrary.utilities.sync.NfcReadUtilityImpl.java
be.appfoundry.nfclibrary.utilities.sync.NfcWriteUtilityImpl.java
be.appfoundry.nfclibrary.utilities.sync.WriteEmailFailsTests.java
be.appfoundry.nfclibrary.utilities.sync.WriteEmailSucceedsTests.java
be.appfoundry.nfclibrary.utilities.sync.WriteGeolocationFailsTests.java
be.appfoundry.nfclibrary.utilities.sync.WriteGeolocationSucceedsTests.java
be.appfoundry.nfclibrary.utilities.sync.WritePhoneFailsTests.java
be.appfoundry.nfclibrary.utilities.sync.WritePhoneSucceedsTests.java
be.appfoundry.nfclibrary.utilities.sync.WriteUriFailsTests.java
be.appfoundry.nfclibrary.utilities.sync.WriteUriSucceedsTests.java
be.appfoundry.nfclibrary.utilities.sync.WriteUtilityImpl.java