Package system.media
Class SoundPlayer
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.media.SoundPlayer
-
- All Implemented Interfaces:
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.See: https://docs.microsoft.com/en-us/dotnet/api/System.Media.SoundPlayer
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static String
assemblyShortName
Assembly name: Systemstatic String
className
Qualified class name: System.Media.SoundPlayerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SoundPlayer()
SoundPlayer(Object instance)
Internal constructor.SoundPlayer(String soundLocation)
SoundPlayer(Stream stream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated 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()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
getLoadTimeout()
void
GetObjectData(SerializationInfo info, StreamingContext context)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.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(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, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final 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 String assemblyShortName
Assembly name: System- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Media.SoundPlayer- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SoundPlayer
public SoundPlayer(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
SoundPlayer
public SoundPlayer() throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, WaitHandleCannotBeOpenedException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
WaitHandleCannotBeOpenedException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
SoundPlayer
public SoundPlayer(Stream stream) throws Throwable, ArgumentNullException, FormatException, ArgumentException, WaitHandleCannotBeOpenedException, NotSupportedException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
Throwable
ArgumentNullException
FormatException
ArgumentException
WaitHandleCannotBeOpenedException
NotSupportedException
ArgumentOutOfRangeException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
SoundPlayer
public SoundPlayer(String soundLocation) throws Throwable, ArgumentNullException, FormatException, ArgumentException, WaitHandleCannotBeOpenedException, NotSupportedException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, SecurityException, UriFormatException, OutOfMemoryException
- Throws:
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 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 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 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 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 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:
Throwable
- in case of error during cast operation
-
Load
public void Load() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException, NotSupportedException, UriFormatException, PathTooLongException, FileNotFoundException, AbandonedMutexException, TimeoutException, ConfigurationException, InvalidCastException, ConfigurationErrorsException
- Throws:
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 Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException, NotSupportedException, UriFormatException, PathTooLongException, FileNotFoundException, SecurityException, NullReferenceException, ConfigurationException, InvalidCastException, ConfigurationErrorsException
- Throws:
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 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:
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 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:
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 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:
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 Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException
-
GetObjectData
@Deprecated public void GetObjectData(SerializationInfo info, StreamingContext context) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToISerializable method available in ISerializable to obtain an object with an invocable method- Specified by:
GetObjectData
in interfaceISerializable
- Throws:
Throwable
-
setLoadTimeout
public void setLoadTimeout(int LoadTimeout) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
setStream
public void setStream(Stream Stream) throws Throwable, ArgumentException, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
-
getSoundLocation
public String getSoundLocation() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, IndexOutOfRangeException, NotSupportedException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
NullReferenceException
IndexOutOfRangeException
NotSupportedException
-
setSoundLocation
public void setSoundLocation(String SoundLocation) throws Throwable, NullReferenceException, ArgumentException, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, FormatException, SecurityException, UriFormatException, OutOfMemoryException
- Throws:
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 Throwable
- Throws:
Throwable
-
removeLoadCompleted
public void removeLoadCompleted(AsyncCompletedEventHandler handler) throws Throwable
- Throws:
Throwable
-
addSoundLocationChanged
public void addSoundLocationChanged(EventHandler handler) throws Throwable
- Throws:
Throwable
-
removeSoundLocationChanged
public void removeSoundLocationChanged(EventHandler handler) throws Throwable
- Throws:
Throwable
-
addStreamChanged
public void addStreamChanged(EventHandler handler) throws Throwable
- Throws:
Throwable
-
removeStreamChanged
public void removeStreamChanged(EventHandler handler) throws Throwable
- Throws:
Throwable
-
-