edu.indiana.dlib.metsnav.mets.v1_5
Class Stream

java.lang.Object
  extended by edu.indiana.dlib.metsnav.mets.v1_5.Stream
All Implemented Interfaces:
Serializable

public class Stream
extends Object
implements Serializable

stream: component byte stream A file may be composed of one or more subsidiary streams. An MPEG4 file, for example, might contain separate audio and video streams, each of which has its own technical metadata associated with it.

See Also:
Serialized Form

Constructor Summary
Stream()
           
 
Method Summary
 void addADMID(int index, Object vADMID)
          Method addADMID
 void addADMID(Object vADMID)
          Method addADMID
 void addDMDID(int index, Object vDMDID)
          Method addDMDID
 void addDMDID(Object vDMDID)
          Method addDMDID
 void clearADMID()
          Method clearADMID
 void clearDMDID()
          Method clearDMDID
 Enumeration enumerateADMID()
          Method enumerateADMID
 Enumeration enumerateDMDID()
          Method enumerateDMDID
 Object[] getADMID()
          Method getADMID
 Object getADMID(int index)
          Method getADMID
 int getADMIDCount()
          Method getADMIDCount
 Object[] getDMDID()
          Method getDMDID
 Object getDMDID(int index)
          Method getDMDID
 int getDMDIDCount()
          Method getDMDIDCount
 String getOWNERID()
          Returns the value of field 'OWNERID'.
 String getStreamType()
          Returns the value of field 'streamType'.
 boolean isValid()
          Method isValid
 void marshal(ContentHandler handler)
          Method marshal
 void marshal(Writer out)
          Method marshal
 boolean removeADMID(Object vADMID)
          Method removeADMID
 boolean removeDMDID(Object vDMDID)
          Method removeDMDID
 void setADMID(int index, Object vADMID)
          Method setADMID
 void setADMID(Object[] ADMIDArray)
          Method setADMID
 void setDMDID(int index, Object vDMDID)
          Method setDMDID
 void setDMDID(Object[] DMDIDArray)
          Method setDMDID
 void setOWNERID(String OWNERID)
          Sets the value of field 'OWNERID'.
 void setStreamType(String streamType)
          Sets the value of field 'streamType'.
static Object unmarshal(Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stream

public Stream()
Method Detail

addADMID

public void addADMID(Object vADMID)
              throws IndexOutOfBoundsException
Method addADMID

Parameters:
vADMID -
Throws:
IndexOutOfBoundsException

addADMID

public void addADMID(int index,
                     Object vADMID)
              throws IndexOutOfBoundsException
Method addADMID

Parameters:
index -
vADMID -
Throws:
IndexOutOfBoundsException

addDMDID

public void addDMDID(Object vDMDID)
              throws IndexOutOfBoundsException
Method addDMDID

Parameters:
vDMDID -
Throws:
IndexOutOfBoundsException

addDMDID

public void addDMDID(int index,
                     Object vDMDID)
              throws IndexOutOfBoundsException
Method addDMDID

Parameters:
index -
vDMDID -
Throws:
IndexOutOfBoundsException

clearADMID

public void clearADMID()
Method clearADMID


clearDMDID

public void clearDMDID()
Method clearDMDID


enumerateADMID

public Enumeration enumerateADMID()
Method enumerateADMID

Returns:
Enumeration

enumerateDMDID

public Enumeration enumerateDMDID()
Method enumerateDMDID

Returns:
Enumeration

getADMID

public Object getADMID(int index)
                throws IndexOutOfBoundsException
Method getADMID

Parameters:
index -
Returns:
Object
Throws:
IndexOutOfBoundsException

getADMID

public Object[] getADMID()
Method getADMID

Returns:
Object

getADMIDCount

public int getADMIDCount()
Method getADMIDCount

Returns:
int

getDMDID

public Object getDMDID(int index)
                throws IndexOutOfBoundsException
Method getDMDID

Parameters:
index -
Returns:
Object
Throws:
IndexOutOfBoundsException

getDMDID

public Object[] getDMDID()
Method getDMDID

Returns:
Object

getDMDIDCount

public int getDMDIDCount()
Method getDMDIDCount

Returns:
int

getOWNERID

public String getOWNERID()
Returns the value of field 'OWNERID'. The field 'OWNERID' has the following description: OWNERID: an optional string attribute which may be used to provide a unique identifier (including a URI) assigned to the file which may differ from the URI used to retrieve the file.

Returns:
String

getStreamType

public String getStreamType()
Returns the value of field 'streamType'.

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(Writer out)
             throws MarshalException,
                    ValidationException
Method marshal

Parameters:
out -
Throws:
MarshalException
ValidationException

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    MarshalException,
                    ValidationException
Method marshal

Parameters:
handler -
Throws:
IOException
MarshalException
ValidationException

removeADMID

public boolean removeADMID(Object vADMID)
Method removeADMID

Parameters:
vADMID -
Returns:
boolean

removeDMDID

public boolean removeDMDID(Object vDMDID)
Method removeDMDID

Parameters:
vDMDID -
Returns:
boolean

setADMID

public void setADMID(int index,
                     Object vADMID)
              throws IndexOutOfBoundsException
Method setADMID

Parameters:
index -
vADMID -
Throws:
IndexOutOfBoundsException

setADMID

public void setADMID(Object[] ADMIDArray)
Method setADMID

Parameters:
ADMIDArray -

setDMDID

public void setDMDID(int index,
                     Object vDMDID)
              throws IndexOutOfBoundsException
Method setDMDID

Parameters:
index -
vDMDID -
Throws:
IndexOutOfBoundsException

setDMDID

public void setDMDID(Object[] DMDIDArray)
Method setDMDID

Parameters:
DMDIDArray -

setOWNERID

public void setOWNERID(String OWNERID)
Sets the value of field 'OWNERID'. The field 'OWNERID' has the following description: OWNERID: an optional string attribute which may be used to provide a unique identifier (including a URI) assigned to the file which may differ from the URI used to retrieve the file.

Parameters:
OWNERID - the value of field 'OWNERID'.

setStreamType

public void setStreamType(String streamType)
Sets the value of field 'streamType'.

Parameters:
streamType - the value of field 'streamType'.

unmarshal

public static Object unmarshal(Reader reader)
                        throws MarshalException,
                               ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
MarshalException
ValidationException

validate

public void validate()
              throws ValidationException
Method validate

Throws:
ValidationException


Copyright © 2005 Trustees of Indiana University. All Rights Reserved.