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)
           
NdefMessage(NdefRecord record, NdefRecord... records)
           
 
Method Summary
 int describeContents()
           
 boolean equals(Object obj)
           
 int getByteArrayLength()
           
 NdefRecord[] getRecords()
           
 int hashCode()
           
 byte[] toByteArray()
           
 String toString()
           
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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 record,
                   NdefRecord... records)

NdefMessage

public NdefMessage(NdefRecord[] records)
Method Detail

getRecords

public NdefRecord[] getRecords()

getByteArrayLength

public int getByteArrayLength()

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012. All Rights Reserved.