public class SoundPlayer extends Component implements ISerializable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Media.SoundPlayer
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Windows.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Windows.Extensions
|
static java.lang.String |
className
Qualified class name: System.Media.SoundPlayer
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
SoundPlayer() |
SoundPlayer(java.lang.Object instance)
Internal constructor.
|
SoundPlayer(Stream stream) |
SoundPlayer(java.lang.String soundLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLoadCompleted(AsyncCompletedEventHandler handler) |
void |
addSoundLocationChanged(EventHandler handler) |
void |
addStreamChanged(EventHandler handler) |
static SoundPlayer |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into SoundPlayer, a cast assert is made to check if types are compatible. |
boolean |
getIsLoadCompleted() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
int |
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 |
setIsLoadCompleted(boolean IsLoadCompleted) |
void |
setJCOInstance(JCObject instance) |
void |
setLoadTimeout(int LoadTimeout) |
void |
setSoundLocation(java.lang.String SoundLocation) |
void |
setStream(Stream Stream) |
void |
setTag(NetObject Tag) |
void |
Stop() |
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSiteGetLifetimeService, InitializeLifetimeServiceEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringGetObjectData, ToISerializablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public SoundPlayer()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
MissingMethodException,
TargetInvocationException,
WaitHandleCannotBeOpenedException,
OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionMissingMethodExceptionTargetInvocationExceptionWaitHandleCannotBeOpenedExceptionOutOfMemoryExceptionpublic SoundPlayer(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic SoundPlayer(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, WaitHandleCannotBeOpenedException
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
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionPlatformNotSupportedExceptionWaitHandleCannotBeOpenedExceptionObjectDisposedExceptionNullReferenceExceptionArgumentNullExceptionAggregateExceptionIndexOutOfRangeExceptionFormatExceptionCultureNotFoundExceptionUnreachableExceptionUriFormatExceptionpublic void addLoadCompleted(AsyncCompletedEventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void addSoundLocationChanged(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void addStreamChanged(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic static SoundPlayer cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into SoundPlayer, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedSoundPlayer instancejava.lang.Throwable - in case of error during cast operationpublic boolean getIsLoadCompleted()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface ISerializablegetJCOAssemblyName in class ComponentString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface ISerializablegetJCOClassName in class ComponentString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface ISerializablegetJCOInstance in class ComponentObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface ISerializablegetJCOObjectName in class ComponentString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface ISerializablegetJCOType in class ComponentJCType representing the CLR Type of the instantiated Classpublic int getLoadTimeout()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getSoundLocation()
throws java.lang.Throwable
java.lang.Throwablepublic Stream getStream() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, UriFormatException, UnreachableException
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionUriFormatExceptionUnreachableExceptionpublic NetObject getTag() throws java.lang.Throwable
java.lang.Throwablepublic 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
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionUriFormatExceptionUnreachableExceptionArrayTypeMismatchExceptionFileNotFoundExceptionObjectDisposedExceptionAbandonedMutexExceptionAggregateExceptionTimeoutExceptionIOExceptionpublic void LoadAsync()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
CultureNotFoundException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
UriFormatException,
UnreachableException,
ArrayTypeMismatchException,
FileNotFoundException,
IOException,
ObjectDisposedException
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionUriFormatExceptionUnreachableExceptionArrayTypeMismatchExceptionFileNotFoundExceptionIOExceptionObjectDisposedExceptionpublic void Play()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
InvalidOperationException,
CultureNotFoundException,
ArgumentOutOfRangeException,
UriFormatException,
ArrayTypeMismatchException,
ObjectDisposedException,
FileNotFoundException,
AbandonedMutexException,
AggregateException,
TimeoutException,
IOException
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionUriFormatExceptionArrayTypeMismatchExceptionObjectDisposedExceptionFileNotFoundExceptionAbandonedMutexExceptionAggregateExceptionTimeoutExceptionIOExceptionpublic void PlayLooping()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
InvalidOperationException,
CultureNotFoundException,
ArgumentOutOfRangeException,
UriFormatException,
ArrayTypeMismatchException,
ObjectDisposedException,
FileNotFoundException,
AbandonedMutexException,
AggregateException,
TimeoutException,
IOException
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionUriFormatExceptionArrayTypeMismatchExceptionObjectDisposedExceptionFileNotFoundExceptionAbandonedMutexExceptionAggregateExceptionTimeoutExceptionIOExceptionpublic void PlaySync()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
InvalidOperationException,
CultureNotFoundException,
ArgumentOutOfRangeException,
UriFormatException,
ArrayTypeMismatchException,
ObjectDisposedException,
FileNotFoundException,
AbandonedMutexException,
AggregateException,
TimeoutException,
IOException
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionUriFormatExceptionArrayTypeMismatchExceptionObjectDisposedExceptionFileNotFoundExceptionAbandonedMutexExceptionAggregateExceptionTimeoutExceptionIOExceptionpublic void removeLoadCompleted(AsyncCompletedEventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void removeSoundLocationChanged(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void removeStreamChanged(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void setIsLoadCompleted(boolean IsLoadCompleted)
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class Componentpublic void setLoadTimeout(int LoadTimeout)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
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
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionObjectDisposedExceptionNullReferenceExceptionArgumentNullExceptionAggregateExceptionIndexOutOfRangeExceptionFormatExceptionCultureNotFoundExceptionUnreachableExceptionOutOfMemoryExceptionUriFormatExceptionpublic void setStream(Stream Stream) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, ArgumentException, AggregateException
public void setTag(NetObject Tag) throws java.lang.Throwable
java.lang.Throwablepublic void Stop()
throws java.lang.Throwable
java.lang.Throwable