|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--com.imaginary.lwp.BaseEntity | +--com.jwpepper.inv.AudioImpl
This interface defines the Audio Object.
Last Modified $Date: 1999/10/05 22:03:44 $
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
AudioImpl()
Constructor method. |
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. |
protected void |
load(Memento mem)
This method loads the Audio's attributes from a Memento Object |
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. |
protected void |
store(Memento mem)
This method stores the Audio's attributes into a Memento Object |
Methods inherited from class com.imaginary.lwp.BaseEntity |
create,
getLastUpdateID,
getLastUpdateTime,
getObjectID,
getReference,
load,
reload,
remove,
save,
store |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AudioImpl() throws java.rmi.RemoteException, PersistenceException
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
protected void load(Memento mem) throws LoadException
mem
- A Memento Objectpublic 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 collectionprotected void store(Memento mem) throws StoreException
mem
- A Memento Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |