All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.std.movies.AtomData

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.util.QTPointerRef
                   |
                   +----quicktime.std.movies.AtomData

public final class AtomData
extends QTPointerRef
This is a Read Only structure that is used to read the values that are stored in an atom of an AtomContainer. To store or alter these values you should use the appropriate methods in the AtomContainer class.


Method Index

 o getByte(int)
Get the byte value at the given position(offset) within the native object.
 o getBytes(int, int)
Returns the byte values at the given position(offset) within the object's memory area.
 o getCString(int)
Returns the C string found at the offset as a java.lang.String
 o getDouble(int)
Get the double value at the given position(offset) within the native object.
 o getFloat(int)
Get the float value at the given position(offset) within the native object.
 o getInt(int)
Get the int value at the given position(offset) within the native object.
 o getLong(int)
Get the long value at the given position(offset) within the native object.
 o getPString(int)
Returns the Pascal string found at the offset as a java.lang.String
 o getShort(int)
Get the short value at the given position(offset) within the native object.

Methods

 o getByte
 public byte getByte(int offset) throws IndexOutOfBoundsException
Get the byte value at the given position(offset) within the native object.

Parameters:
offset - the given number of bytes to offset
Returns:
the byte value at the offset.
Throws: IndexOutOfBoundsException
is thrown if the offset is larger than the size of the data
 o getShort
 public short getShort(int offset) throws IndexOutOfBoundsException
Get the short value at the given position(offset) within the native object.

Parameters:
offset - the given number of bytes to offset
Returns:
the short value at the offset.
Throws: IndexOutOfBoundsException
is thrown if the offset is larger than the size of the data
 o getInt
 public int getInt(int offset) throws IndexOutOfBoundsException
Get the int value at the given position(offset) within the native object.

Parameters:
offset - the given number of bytes to offset
Returns:
the int value at the offset.
Throws: IndexOutOfBoundsException
is thrown if the offset is larger than the size of the data
 o getLong
 public long getLong(int offset) throws IndexOutOfBoundsException
Get the long value at the given position(offset) within the native object.

Parameters:
offset - the given number of bytes to offset
Returns:
the long value at the offset.
Throws: IndexOutOfBoundsException
is thrown if the offset is larger than the size of the data
 o getFloat
 public float getFloat(int offset) throws IndexOutOfBoundsException
Get the float value at the given position(offset) within the native object.

Parameters:
offset - the given number of bytes to offset
Returns:
the float value at the offset.
Throws: IndexOutOfBoundsException
is thrown if the offset is larger than the size of the data
 o getDouble
 public double getDouble(int offset) throws IndexOutOfBoundsException
Get the double value at the given position(offset) within the native object.

Parameters:
offset - the given number of bytes to offset
Returns:
the double value at the offset.
Throws: IndexOutOfBoundsException
is thrown if the offset is larger than the size of the data
 o getCString
 public String getCString(int offset) throws UtilException, IndexOutOfBoundsException
Returns the C string found at the offset as a java.lang.String

Parameters:
offset - the given number of bytes to offset
Returns:
java.lang.String representation
Throws: IndexOutOfBoundsException
is thrown if the offset is larger than the size of the data
 o getPString
 public String getPString(int offset) throws UtilException, IndexOutOfBoundsException
Returns the Pascal string found at the offset as a java.lang.String

Parameters:
offset - the given number of bytes to offset
Returns:
java.lang.String representation
Throws: IndexOutOfBoundsException
is thrown if the offset is larger than the size of the data
 o getBytes
 public byte[] getBytes(int offset,
                        int length) throws IndexOutOfBoundsException
Returns the byte values at the given position(offset) within the object's memory area.

Parameters:
offset - the given number of bytes to locate the struct.
length - the given number of bytes of memory. The maximum length that will be copied is (size - offset) bytes. If zero then this will return all of the available bytes from the offset.
Returns:
the byte array
Throws: IndexOutOfBoundsException
is thrown if the offset is larger than the size of the data

All Packages  Class Hierarchy  This Package  Previous  Next  Index