IT. Expert System.

Android Reference


Class Metadata

  • public class Metadata
    extends Object
    Class to hold the media's metadata. Metadata are used for human consumption and can be embedded in the media (e.g shoutcast) or available from an external source. The source can be local (e.g thumbnail stored in the DB) or remote. Metadata is like a Bundle. It is sparse and each key can occur at most once. The key is an integer and the value is the actual metadata. The caller is expected to know the type of the metadata and call the right get* method to fetch its value.
    • Constructor Detail

      • Metadata

        public Metadata()
    • Method Detail

      • parse

        public boolean parse(Parcel parcel)
        Check a parcel containing metadata is well formed. The header is checked as well as the individual records format. However, the data inside the record is not checked because we do lazy access (we check/unmarshall only data the user asks for.) Format of a metadata parcel:
                                 1                   2                   3
              0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
              |                     metadata total size                       |
              |     'M'       |     'E'       |     'T'       |     'A'       |
              |                                                               |
              |                .... metadata records ....                     |
              |                                                               |
        parcel - With the serialized data. Metadata keeps a reference on it to access it later on. The caller should not modify the parcel after this call (and not call recycle on it.)
        false if an error occurred.
      • keySet

        public Set<Integer> keySet()
        The set of metadata ID found.
      • has

        public boolean has(int metadataId)
        true if a value is present for the given key.
      • getString

        public String getString(int key)
      • getInt

        public int getInt(int key)
      • getBoolean

        public boolean getBoolean(int key)
        Get the boolean value indicated by key
      • getLong

        public long getLong(int key)
      • getDouble

        public double getDouble(int key)
      • getByteArray

        public byte[] getByteArray(int key)
      • getDate

        public Date getDate(int key)
      • lastSytemId

        public static int lastSytemId()
        the last available system metadata id. Ids are 1-indexed.
      • firstCustomId

        public static int firstCustomId()
        the first available cutom metadata id.
      • lastType

        public static int lastType()
        the last value of known type. Types are 1-indexed.


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 744 / 158767204. Delta: 0.02858 с