Package system.media
Class SoundPlayer
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.media.SoundPlayer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,ISerializable
public class SoundPlayer extends Component implements ISerializable
The base .NET class managing System.Media.SoundPlayer, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Media.SoundPlayer
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: Systemstatic java.lang.String
className
Qualified class name: System.Media.SoundPlayerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SoundPlayer()
SoundPlayer(java.lang.Object instance)
Internal constructor.SoundPlayer(java.lang.String soundLocation)
SoundPlayer(Stream stream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLoadCompleted(AsyncCompletedEventHandler handler)
void
addSoundLocationChanged(EventHandler handler)
void
addStreamChanged(EventHandler handler)
static SoundPlayer
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoSoundPlayer
, a cast assert is made to check if types are compatible.boolean
getIsLoadCompleted()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
getLoadTimeout()
java.lang.String
getSoundLocation()
Stream
getStream()
NetObject
getTag()
void
Load()
void
LoadAsync()
void
Play()
void
PlayLooping()
void
PlaySync()
void
removeLoadCompleted(AsyncCompletedEventHandler handler)
void
removeSoundLocationChanged(EventHandler handler)
void
removeStreamChanged(EventHandler handler)
void
setJCOInstance(JCObject instance)
void
setLoadTimeout(int LoadTimeout)
void
setSoundLocation(java.lang.String SoundLocation)
void
setStream(Stream Stream)
void
setTag(NetObject Tag)
void
Stop()
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Media.SoundPlayer- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SoundPlayer
public SoundPlayer(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
SoundPlayer
public SoundPlayer() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, WaitHandleCannotBeOpenedException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
WaitHandleCannotBeOpenedException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
SoundPlayer
public SoundPlayer(Stream stream) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException, WaitHandleCannotBeOpenedException, NotSupportedException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentNullException
FormatException
ArgumentException
WaitHandleCannotBeOpenedException
NotSupportedException
ArgumentOutOfRangeException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
SoundPlayer
public SoundPlayer(java.lang.String soundLocation) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException, WaitHandleCannotBeOpenedException, NotSupportedException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, SecurityException, UriFormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentNullException
FormatException
ArgumentException
WaitHandleCannotBeOpenedException
NotSupportedException
ArgumentOutOfRangeException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
SecurityException
UriFormatException
OutOfMemoryException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOAssemblyName
in interfaceISerializable
- Overrides:
getJCOAssemblyName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOClassName
in interfaceISerializable
- Overrides:
getJCOClassName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOObjectName
in interfaceISerializable
- Overrides:
getJCOObjectName
in classComponent
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Specified by:
getJCOInstance
in interfaceISerializable
- Overrides:
getJCOInstance
in classComponent
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceISerializable
- Overrides:
getJCOType
in classComponent
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static SoundPlayer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoSoundPlayer
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SoundPlayer
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Load
public void Load() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException, NotSupportedException, UriFormatException, PathTooLongException, FileNotFoundException, AbandonedMutexException, TimeoutException, ConfigurationException, InvalidCastException, ConfigurationErrorsException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
OutOfMemoryException
NotSupportedException
UriFormatException
PathTooLongException
FileNotFoundException
AbandonedMutexException
TimeoutException
ConfigurationException
InvalidCastException
ConfigurationErrorsException
-
LoadAsync
public void LoadAsync() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException, NotSupportedException, UriFormatException, PathTooLongException, FileNotFoundException, SecurityException, NullReferenceException, ConfigurationException, InvalidCastException, ConfigurationErrorsException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
OutOfMemoryException
NotSupportedException
UriFormatException
PathTooLongException
FileNotFoundException
SecurityException
NullReferenceException
ConfigurationException
InvalidCastException
ConfigurationErrorsException
-
Play
public void Play() throws java.lang.Throwable, SecurityException, InvalidOperationException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, UriFormatException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, TimeoutException, ConfigurationException, InvalidCastException, ConfigurationErrorsException
- Throws:
java.lang.Throwable
SecurityException
InvalidOperationException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
OutOfMemoryException
UriFormatException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
TimeoutException
ConfigurationException
InvalidCastException
ConfigurationErrorsException
-
PlayLooping
public void PlayLooping() throws java.lang.Throwable, SecurityException, InvalidOperationException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, UriFormatException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, TimeoutException, ConfigurationException, InvalidCastException, ConfigurationErrorsException
- Throws:
java.lang.Throwable
SecurityException
InvalidOperationException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
OutOfMemoryException
UriFormatException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
TimeoutException
ConfigurationException
InvalidCastException
ConfigurationErrorsException
-
PlaySync
public void PlaySync() throws java.lang.Throwable, SecurityException, InvalidOperationException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, UriFormatException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, TimeoutException, ConfigurationException, InvalidCastException, ConfigurationErrorsException
- Throws:
java.lang.Throwable
SecurityException
InvalidOperationException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
OutOfMemoryException
UriFormatException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
TimeoutException
ConfigurationException
InvalidCastException
ConfigurationErrorsException
-
Stop
public void Stop() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
-
getIsLoadCompleted
public boolean getIsLoadCompleted() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getLoadTimeout
public int getLoadTimeout() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setLoadTimeout
public void setLoadTimeout(int LoadTimeout) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
getStream
public Stream getStream() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setStream
public void setStream(Stream Stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
-
getTag
public NetObject getTag() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTag
public void setTag(NetObject Tag) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSoundLocation
public java.lang.String getSoundLocation() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, IndexOutOfRangeException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
NullReferenceException
IndexOutOfRangeException
NotSupportedException
-
setSoundLocation
public void setSoundLocation(java.lang.String SoundLocation) throws java.lang.Throwable, NullReferenceException, ArgumentException, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, FormatException, SecurityException, UriFormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
NullReferenceException
ArgumentException
NotSupportedException
ArgumentNullException
ArgumentOutOfRangeException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
FormatException
SecurityException
UriFormatException
OutOfMemoryException
-
addLoadCompleted
public void addLoadCompleted(AsyncCompletedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeLoadCompleted
public void removeLoadCompleted(AsyncCompletedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addSoundLocationChanged
public void addSoundLocationChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeSoundLocationChanged
public void removeSoundLocationChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addStreamChanged
public void addStreamChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeStreamChanged
public void removeStreamChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-