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.Windows.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..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.StringassemblyFullNameFully assembly qualified name: System.Windows.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Windows.Extensionsstatic java.lang.StringclassNameQualified class name: System.Media.SoundPlayerstatic JCTypeclassTypeThe 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 voidaddLoadCompleted(AsyncCompletedEventHandler handler)voidaddSoundLocationChanged(EventHandler handler)voidaddStreamChanged(EventHandler handler)static SoundPlayercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoSoundPlayer, a cast assert is made to check if types are compatible.booleangetIsLoadCompleted()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeintgetLoadTimeout()java.lang.StringgetSoundLocation()StreamgetStream()NetObjectgetTag()voidLoad()voidLoadAsync()voidPlay()voidPlayLooping()voidPlaySync()voidremoveLoadCompleted(AsyncCompletedEventHandler handler)voidremoveSoundLocationChanged(EventHandler handler)voidremoveStreamChanged(EventHandler handler)voidsetIsLoadCompleted(boolean IsLoadCompleted)voidsetJCOInstance(JCObject instance)voidsetLoadTimeout(int LoadTimeout)voidsetSoundLocation(java.lang.String SoundLocation)voidsetStream(Stream Stream)voidsetTag(NetObject Tag)voidStop()-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
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.Windows.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Windows.Extensions- 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.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
SoundPlayer
public SoundPlayer() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, MissingMethodException, TargetInvocationException, WaitHandleCannotBeOpenedException, OutOfMemoryException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionMissingMethodExceptionTargetInvocationExceptionWaitHandleCannotBeOpenedExceptionOutOfMemoryException
-
SoundPlayer
public SoundPlayer(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, WaitHandleCannotBeOpenedException
-
SoundPlayer
public SoundPlayer(java.lang.String soundLocation) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, WaitHandleCannotBeOpenedException, ObjectDisposedException, NullReferenceException, ArgumentNullException, AggregateException, IndexOutOfRangeException, FormatException, CultureNotFoundException, UnreachableException, UriFormatException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionPlatformNotSupportedExceptionWaitHandleCannotBeOpenedExceptionObjectDisposedExceptionNullReferenceExceptionArgumentNullExceptionAggregateExceptionIndexOutOfRangeExceptionFormatExceptionCultureNotFoundExceptionUnreachableExceptionUriFormatException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Specified by:
getJCOAssemblyNamein interfaceISerializable- Overrides:
getJCOAssemblyNamein classComponent- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Specified by:
getJCOClassNamein interfaceISerializable- Overrides:
getJCOClassNamein classComponent- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Specified by:
getJCOObjectNamein interfaceISerializable- Overrides:
getJCOObjectNamein classComponent- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Specified by:
getJCOInstancein interfaceISerializable- Overrides:
getJCOInstancein classComponent- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Specified by:
getJCOTypein interfaceISerializable- Overrides:
getJCOTypein classComponent- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static SoundPlayer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoSoundPlayer, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
SoundPlayerinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Load
public void Load() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, UriFormatException, UnreachableException, ArrayTypeMismatchException, FileNotFoundException, ObjectDisposedException, AbandonedMutexException, AggregateException, TimeoutException, IOException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionUriFormatExceptionUnreachableExceptionArrayTypeMismatchExceptionFileNotFoundExceptionObjectDisposedExceptionAbandonedMutexExceptionAggregateExceptionTimeoutExceptionIOException
-
LoadAsync
public void LoadAsync() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, UriFormatException, UnreachableException, ArrayTypeMismatchException, FileNotFoundException, IOException, ObjectDisposedException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionUriFormatExceptionUnreachableExceptionArrayTypeMismatchExceptionFileNotFoundExceptionIOExceptionObjectDisposedException
-
Play
public void Play() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, UriFormatException, ArrayTypeMismatchException, ObjectDisposedException, FileNotFoundException, AbandonedMutexException, AggregateException, TimeoutException, IOException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionUriFormatExceptionArrayTypeMismatchExceptionObjectDisposedExceptionFileNotFoundExceptionAbandonedMutexExceptionAggregateExceptionTimeoutExceptionIOException
-
PlayLooping
public void PlayLooping() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, UriFormatException, ArrayTypeMismatchException, ObjectDisposedException, FileNotFoundException, AbandonedMutexException, AggregateException, TimeoutException, IOException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionUriFormatExceptionArrayTypeMismatchExceptionObjectDisposedExceptionFileNotFoundExceptionAbandonedMutexExceptionAggregateExceptionTimeoutExceptionIOException
-
PlaySync
public void PlaySync() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, UriFormatException, ArrayTypeMismatchException, ObjectDisposedException, FileNotFoundException, AbandonedMutexException, AggregateException, TimeoutException, IOException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionUriFormatExceptionArrayTypeMismatchExceptionObjectDisposedExceptionFileNotFoundExceptionAbandonedMutexExceptionAggregateExceptionTimeoutExceptionIOException
-
Stop
public void Stop() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsLoadCompleted
public boolean getIsLoadCompleted() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIsLoadCompleted
public void setIsLoadCompleted(boolean IsLoadCompleted) 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, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getStream
public Stream getStream() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, UriFormatException, UnreachableException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionUriFormatExceptionUnreachableException
-
setStream
public void setStream(Stream Stream) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, ArgumentException, AggregateException
-
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- Throws:
java.lang.Throwable
-
setSoundLocation
public void setSoundLocation(java.lang.String SoundLocation) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ObjectDisposedException, NullReferenceException, ArgumentNullException, AggregateException, IndexOutOfRangeException, FormatException, CultureNotFoundException, UnreachableException, OutOfMemoryException, UriFormatException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionObjectDisposedExceptionNullReferenceExceptionArgumentNullExceptionAggregateExceptionIndexOutOfRangeExceptionFormatExceptionCultureNotFoundExceptionUnreachableExceptionOutOfMemoryExceptionUriFormatException
-
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
-
-