|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the Audio Object.
Last Modified $Date: 1999/10/05 22:03:40 $
Field Summary | |
static java.lang.String |
AUDIO
|
static java.lang.String |
LOCALE
|
static java.lang.String |
MIMETYPE
|
static java.lang.String |
PRODUCTS
|
static java.lang.String |
SIZE
|
Method Summary | |
void |
addProduct(Identifier id,
Product prd)
This method adds a Product to a collection of Products that the Audio belongs to. |
void |
create(Identifier id,
java.util.Locale loc,
java.io.BufferedInputStream aBuf,
long len,
java.lang.String mime)
This method creates a new Audio Object and sets its attributes. |
void |
create(Identifier id,
java.util.Locale loc,
java.io.File aFil,
java.lang.String mime)
This method creates a new Audio Object and sets its attributes. |
java.io.BufferedInputStream |
getAudio()
This method returns the Audio String. |
java.util.Locale |
getLocale()
This method returns the Locale Object. |
java.lang.String |
getMimeType()
This method returns the MimeType of the Audio Stream. |
long |
getSize()
This method returns the size of the Audio Stream. |
com.sun.java.util.collections.Iterator |
products()
This method returns an iterator over the products collection. |
void |
removeProduct(Identifier id,
Product prd)
This method removes a Product from a collection of Products that the Audio belongs to. |
Methods inherited from interface com.imaginary.lwp.Entity |
getLastUpdateID,
getLastUpdateTime,
getObjectID,
getReference,
remove |
Field Detail |
public static final java.lang.String LOCALE
public static final java.lang.String AUDIO
public static final java.lang.String MIMETYPE
public static final java.lang.String PRODUCTS
public static final java.lang.String SIZE
Method Detail |
public void addProduct(Identifier id, Product prd) throws PersistenceException, java.rmi.RemoteException
id
- An identifer object for the Audioprd
- A Product object to add to the collectionpublic void create(Identifier id, java.util.Locale loc, java.io.File aFil, java.lang.String mime) throws CreateException, java.io.FileNotFoundException, java.rmi.RemoteException, PersistenceException
id
- An identifer object for the Audioloc
- Country/Language InformationaFil
- A Sound Filemime
- The mimetype of the Audiopublic void create(Identifier id, java.util.Locale loc, java.io.BufferedInputStream aBuf, long len, java.lang.String mime) throws CreateException, java.rmi.RemoteException, PersistenceException
id
- An identifer object for the Audioloc
- Country/Language InformationaBuf
- A Buffered Input Stream of musiclen
- Size of the audio stream in bytesmime
- The mimetype of the Audiopublic java.io.BufferedInputStream getAudio() throws java.rmi.RemoteException
public java.util.Locale getLocale() throws java.rmi.RemoteException
public java.lang.String getMimeType() throws java.rmi.RemoteException
public long getSize() throws java.rmi.RemoteException
public com.sun.java.util.collections.Iterator products() throws java.rmi.RemoteException
public void removeProduct(Identifier id, Product prd) throws PersistenceException, java.rmi.RemoteException
id
- An identifer object for the Audioprd
- A Product object to add to the collection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |