android.nfc
Class NdefMessage

java.lang.Object
  extended by android.nfc.NdefMessage
All Implemented Interfaces:
Parcelable

public final class NdefMessage
extends Object
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<NdefMessage> CREATOR
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
NdefMessage(byte[] data)
           
NdefMessage(NdefRecord[] records)
           
 
Method Summary
 int describeContents()
           
 NdefRecord[] getRecords()
           
 byte[] toByteArray()
           
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATOR

public static final Parcelable.Creator<NdefMessage> CREATOR
Constructor Detail

NdefMessage

public NdefMessage(byte[] data)
            throws FormatException
Throws:
FormatException

NdefMessage

public NdefMessage(NdefRecord[] records)
Method Detail

getRecords

public NdefRecord[] getRecords()

toByteArray

public byte[] toByteArray()

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface Parcelable


Copyright © 2008-2012. All Rights Reserved.